From: Phil Muldoon <pmuldoon@redhat.com>
To: PcX <xunxun1982@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: How can I set gdb.python directory on Windows?
Date: Tue, 09 Aug 2011 20:43:00 -0000 [thread overview]
Message-ID: <m3aabiwc2t.fsf@redhat.com> (raw)
In-Reply-To: <4E4136C5.1080704@gmail.com> (PcX's message of "Tue, 09 Aug 2011 21:31:49 +0800")
PcX <xunxun1982@gmail.com> 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
next prev parent reply other threads:[~2011-08-09 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-09 13:26 PcX
2011-08-09 20:43 ` Phil Muldoon [this message]
2011-08-09 20:52 ` PcX
2011-08-10 14:00 ` Tom Tromey
2011-08-12 15:34 ` PcX
2011-08-12 18:49 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3aabiwc2t.fsf@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb@sourceware.org \
--cc=xunxun1982@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox