From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 900 invoked by alias); 9 Aug 2011 20:43:28 -0000 Received: (qmail 890 invoked by uid 22791); 9 Aug 2011 20:43:26 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Aug 2011 20:43:09 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p79Kh8mm006774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 9 Aug 2011 16:43:08 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p79Kh62m013115; Tue, 9 Aug 2011 16:43:07 -0400 From: Phil Muldoon To: PcX Cc: gdb@sourceware.org Subject: Re: How can I set gdb.python directory on Windows? References: <4E4136C5.1080704@gmail.com> Reply-to: pmuldoon@redhat.com X-URL: http://www.redhat.com Date: Tue, 09 Aug 2011 20:43:00 -0000 In-Reply-To: <4E4136C5.1080704@gmail.com> (PcX's message of "Tue, 09 Aug 2011 21:31:49 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00025.txt.bz2 PcX writes: > Hi, all > > Since gdb harcodes its share directory, but I usually move the gdb > to other directory. > I found that in gdb command: > > set data-directory e:\mypack\mingw\share\gdb > > I can set gdb's share directory, but I type > python print gdb.PYTHONDIR gdb.PYTHONDIR is set at start-up to the current data-directory + the Python relevant paths. I think it is a bug that "set data-directory" does not alter gdb.PYTHONDIR. > Is there some methods to change the gdb python pretty-printer > directory to e:\mypack\mingw\share\gdb\python? You can run configure with the --prefix="your/path", or if you wished you could set gdb.PYTHONDIR directly with python gdb.PYTHONDIR="blah" I can't think if case where you want to do this outside of the build parameter passed to configure, as that is where the Python files will be installed. Is the --prefix command what you need, or is there another scenario you have in mind? Cheers, Phil