This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Trying to get GDB to find PE symbol file via build-id
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Benjamin Gilbert <bgilbert at backtick dot net>, Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Cc: gdb at sourceware dot org
- Date: Thu, 19 Mar 2015 14:38:08 +0800
- Subject: Re: Trying to get GDB to find PE symbol file via build-id
- Authentication-results: sourceware.org; auth=none
- References: <CAFKqAcT3qbRGNrczTyPpVW7vrm2GhVUbWVuhupn1YYwEQCOomA at mail dot gmail dot com> <54FDCDF0 dot 6080602 at dronecode dot org dot uk> <5506F9B1 dot 9050008 at dronecode dot org dot uk> <CAFKqAcR0xxj6Rj_tOU7bDuLQcZTCboQ+Ohv6WyERs7MYwkUfPA at mail dot gmail dot com>
On 2015-3-19 13:05, Benjamin Gilbert wrote:
> On Mon, Mar 16, 2015 at 11:41 AM, Jon TURNEY
> <jon.turney@dronecode.org.uk> wrote:
>> On 09/03/2015 16:44, Jon TURNEY wrote:
>>> 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
>
> Your patch works for me.
>
Do you know there are any native compiler suite under Windows which support "build-id" option?
I just tried recent native MinGW and MinGW-W64 compiler suite, the ld.exe in those suites doesn't supoort this option.
Yuanhui Zhang