From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5958 invoked by alias); 12 Aug 2011 15:34:37 -0000 Received: (qmail 5752 invoked by uid 22791); 12 Aug 2011 15:34:37 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-pz0-f44.google.com (HELO mail-pz0-f44.google.com) (209.85.210.44) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 12 Aug 2011 15:34:22 +0000 Received: by pzk36 with SMTP id 36so1429778pzk.3 for ; Fri, 12 Aug 2011 08:34:21 -0700 (PDT) Received: by 10.143.97.14 with SMTP id z14mr518351wfl.296.1313163261594; Fri, 12 Aug 2011 08:34:21 -0700 (PDT) Received: from [192.168.1.3] ([27.47.192.83]) by mx.google.com with ESMTPS id f20sm1548006wfl.9.2011.08.12.08.34.18 (version=SSLv3 cipher=OTHER); Fri, 12 Aug 2011 08:34:20 -0700 (PDT) Message-ID: <4E454954.3010002@gmail.com> Date: Fri, 12 Aug 2011 15:34:00 -0000 From: PcX User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110630 Thunderbird/5.0 MIME-Version: 1.0 To: Tom Tromey CC: pmuldoon@redhat.com, gdb@sourceware.org Subject: Re: How can I set gdb.python directory on Windows? References: <4E4136C5.1080704@gmail.com> <4E419F38.5070208@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00034.txt.bz2 于 2011/8/10 21:59, Tom Tromey 写道: >>>>>> "PcX" == PcX writes: > PcX> I means after I built a gdb, if I copy it to my friend, his directory > PcX> may be different from mine. > > It should work ok as long as the install tree has the same shape. > There is some relocation-handling code in startup that deals with this. > Maybe this isn't working properly somehow? > > Tom I don't think so. As I type "python print gdb.PYTHONDIR" in gdb command, it will output: c:\mingw\share\gdb/python But my gdb python pretty printer directory is "e:\mypack\mingw\share\gdb\python". Is this a windows specific problem? -- Best Regards, PcX