<div dir="ltr"><div style>The elf files we are debugging on Linux have split the debug information from the main binary. Something like this:</div><div style><br></div><div style><a href="http://slackito.com/2011/08/24/separate-debug-information-with-gdb/">http://slackito.com/2011/08/24/separate-debug-information-with-gdb/</a><br>

</div><div style><br></div><div style>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.</div>

<div style><br></div><div style>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.<br>

</div><div style><br></div><div style>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:<div>

<br></div><div><a href="http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html">http://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html</a></div><div><br></div><div style>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?<br>

</div></div><div style><br></div><div style>Thanks much.</div><div style> -Mike<br></div>
</div>