This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: eu-addr2line only searches by build-id?
- From: Kurt Roeckx <kurt at roeckx dot be>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 08 Jun 2010 18:20:42 +0200
- Subject: Re: eu-addr2line only searches by build-id?
On Tue, Jun 08, 2010 at 11:46:48AM +0200, Mark Wielaard wrote:
> > While I was expecting it to look at
> > /usr/lib/debug/$path/$gnu_debuglink too.
>
> It does do that for me (although I don't have the debuginfo files
> installed at the moment):
>
> $ echo 0x00401f20 | strace -e trace=file eu-addr2line -e /bin/more
> [...]
> open("/bin/more", O_RDONLY) = 3
> open("/usr/lib/debug/.build-id/01/4f8a59331cb8b0c28035ba94c9b944f21bef6c.debug", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/bin/more.debug", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/bin/.debug/more.debug", O_RDONLY) = -1 ENOENT (No such file or
> directory)
> open("/usr/lib/debug/bin/more.debug", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> lstat("/bin", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
> lstat("/bin/more", {st_mode=S_IFREG|0755, st_size=41144, ...}) = 0
> ??:0
I also see that behaviour when the gnu_debuglink is not set, but
I don't when it's set.
> You might need to give an explicit --debuginfo-path=/usr/lib/debug
> argument if it doesn't default to that for you.
That works too, but that's part of the default search path ...
Kurt