[lldb-dev] ELF Separate Debug File question

Michael Sartain mikesart at valvesoftware.com
Mon May 27 17:49:19 PDT 2013


The elf files we are debugging on Linux have split the debug information
from the main binary. Something like this:

http://slackito.com/2011/08/24/separate-debug-information-with-gdb/

That leaves the main binary with a .gnu_debuglink section which points to
the debug information file name, and all the debug sections in the main elf
file have been stripped out.

I'm looking at implementing support for this in ObjectFileELF, and I'm
thinking I can have the ObjectFileELF contain a pointer to another
ObjectFileELF object when we find a .gnu_debuglink. The debug sections in
that second ObjectFileELF can be added as child sections to the
.gnu_debuglink section in the main binary.

I also need to get a list of paths to search for these debug files passed
down to ObjectFileELF. In gdb, this is the "set debug-file-directory"
command. That is all described here:

http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html

Anyone have any comments / suggestions / gotchas on this before I start
heading down this path? Am I using the children section consistently with
what's expected? Any better ways to accomplish this?

Thanks much.
 -Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130527/c9d741b8/attachment.html>


More information about the lldb-dev mailing list