working with split debug files and sectionless ELFs

Aleksandar Ristovski aristovski@qnx.com
Fri Oct 14 14:23:00 GMT 2011


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.







More information about the Gdb mailing list