From: Daniel Jacobowitz <dan@codesourcery.com>
To: Srinath Avadhanula <srinathava@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: A question about data-directory
Date: Tue, 31 Aug 2010 13:08:00 -0000 [thread overview]
Message-ID: <20100831130845.GA17941@caradoc.them.org> (raw)
In-Reply-To: <AANLkTimiO+2FBft1tNzfZ=axZ6yTZfzV4rq3P0+9GqAG@mail.gmail.com>
On Mon, Aug 30, 2010 at 07:21:59PM -0400, Srinath Avadhanula wrote:
> Hi Daniel,
>
> On Mon, Aug 30, 2010 at 7:00 PM, Daniel Jacobowitz <dan@codesourcery.com> wrote:
> > On Mon, Aug 30, 2010 at 06:46:49PM -0400, Srinath Avadhanula wrote:
> >> I was expecting the output from the auto-load script to say 'getting
> >> here' before getting back to the prompt. If I place test-gdb.py in the
> >> same directory as the executable (i.e. at /tmp/test/test-gdb.py) then
> >> I do get a line saying 'getting here'.
> >
> > IIUC, that's what's supposed to happen right now. Â The 'python'
> > directory in datadir is added to the Python search path, but gdb.py
> > files are searched for next to the object file.
> >
>
> That seems to flatly contradict what is mentioned in the doc:
>
> ----------%<------------
> Finally, if this file does not exist, then gdb will look for a file
> named data-directory/python/auto-load/real-name, where data-directory
> is gdb's data directory (available via show data-directory, see Data
> Files), and real-name is the object file's real name, as described
> above.
> ----------%<------------
I think this is a different search option - and you're misreading
REAL-NAME. The real name is going to be $DATADIR/tmp/test/test.
Also, the docs appear to be wrong, by stracing GDB:
open("../gdb", O_RDONLY) = 7
open("/space/fsf/x86-64/commit-gdb/gdb/gdb-gdb.py", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/lib/debug/space/fsf/x86-64/commit-gdb/gdb/gdb-gdb.py",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/gdb/auto-load/space/fsf/x86-64/commit-gdb/gdb/gdb-gdb.py",
O_RDONLY) = -1 ENOENT (No such file or directory)
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2010-08-31 13:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 22:46 Srinath Avadhanula
2010-08-30 23:00 ` Daniel Jacobowitz
2010-08-30 23:22 ` Srinath Avadhanula
2010-08-31 13:08 ` Daniel Jacobowitz [this message]
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=20100831130845.GA17941@caradoc.them.org \
--to=dan@codesourcery.com \
--cc=gdb@sourceware.org \
--cc=srinathava@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