This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: working with split debug files and sectionless ELFs
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: gdb at sources dot redhat dot com
- Date: Fri, 14 Oct 2011 10:23:04 -0400
- Subject: Re: working with split debug files and sectionless ELFs
- References: <201110121335.56792.vapier@gentoo.org>
On 11-10-12 01:35 PM, Mike Frysinger wrote:
...
second, i wonder if we can't have this work more intelligently out of the box.
is it unreasonable to have gdb automatically search /usr/lib/debug/ for split
debuf files if the .gnu_debuglink section does not exist ? or at least do it
if the ELF has no sections at all ? it'd be nice if we could do `gdb prog`
and gdb is smart enough to at least check /usr/lib/debug/usr/bin/prog.debug.
-mike
Can this be used for what you want:
(gdb) help set debug-file-directory
Set the directories where separate debug symbols are searched for.
Separate debug symbols are first searched for in the same
directory as the binary, then in the `.debug' subdirectory,
and lastly at the path of the directory of the binary with
each global debug-file-directory component prepended.