Trying to get GDB to find PE symbol file via build-id
Jon TURNEY
jon.turney@dronecode.org.uk
Mon Mar 9 16:44:00 GMT 2015
On 08/03/2015 22:52, Benjamin Gilbert wrote:
> I'm trying to build a Win32 DLL with separate debug symbols, but I can't
> seem to get GDB to automatically load a symbol file using the PE build-id
> support added in ld 2.25. I'm running on Fedora 21 x86_64, with a gdb
> built from binutils-gdb HEAD (3e95021) and configured with
> "--target=i686-w64-mingw32".
Sorry, this was not something that I needed, so I never got around to
looking at what was needed to hook this up in gdb.
At the moment, fetching the build-id for gdb is only implemented for ELF
files (See gdb/build-ic.c:build_id_bfd_get())
It should be pretty straightforward to extend that to handle PE files as
well, and add an interface to get the PE build-id out of BFD...
More information about the Gdb
mailing list