Re: Trying to get GDB to find PE symbol file via build-id
Jon TURNEY <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On 09/03/2015 16:44, Jon TURNEY wrote: > 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... Well, slightly less straightforward than I thought it would be, but I wrote a patch to do that... [1] https://sourceware.org/ml/gdb-patches/2015-03/msg00458.html