On Wed, Mar 23, 2011 at 06:21:32PM +0100, Jan Kratochvil wrote:
> BFD has no idea about the linkage of the binary and the .debug BFD files.
> Only GDB connects the binary and the .debug BFD files content for the user.

I think the correct fix is for gdb to use the binary bfd when calling
get_synthetic_symtab.  That isn't as simple as it sounds, because you
obviously need to use symbols from the debug info file.  See oprofile
code handling exactly this situation in libutils++/bfd_support.cpp.

-- 
Alan Modra
Australia Development Lab, IBM
_______________________________________________
elfutils-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to