This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [2/3, ppc64, elfutils patch] eu-strip vs. func addresses for GDB inferior calls
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