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: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 08 Jun 2010 11:46:48 +0200
- Subject: Re: eu-addr2line only searches by build-id?
On Sun, 2010-06-06 at 21:04 +0200, Kurt Roeckx wrote:
> When trying to use eu-addr2line when the debug symbols have been
> put into a separate file, it's not trying to look for that file
> at all the locations I expect it to look at.
>
> The strace shows only this:
> open("/usr/lib/debug/.build-id/99/26bcc0fa6bd3b5657bb701ebf6159e34846965.debug",
> O_RDONLY) = -1 ENOENT (No such file or directory)
>
> 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
You might need to give an explicit --debuginfo-path=/usr/lib/debug
argument if it doesn't default to that for you.
Cheers,
Mark