From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88022 invoked by alias); 19 Mar 2015 12:23:32 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 87249 invoked by uid 89); 19 Mar 2015 12:23:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out3-smtp.messagingengine.com Received: from out3-smtp.messagingengine.com (HELO out3-smtp.messagingengine.com) (66.111.4.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 19 Mar 2015 12:23:30 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 227B32089A for ; Thu, 19 Mar 2015 08:23:26 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Thu, 19 Mar 2015 08:23:28 -0400 Received: from [192.168.1.102] (unknown [31.51.206.246]) by mail.messagingengine.com (Postfix) with ESMTPA id DCA746801E6; Thu, 19 Mar 2015 08:23:27 -0400 (EDT) Message-ID: <550ABFBF.4050404@dronecode.org.uk> Date: Thu, 19 Mar 2015 12:23:00 -0000 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: asmwarrior CC: gdb@sourceware.org Subject: Re: Trying to get GDB to find PE symbol file via build-id References: <54FDCDF0.6080602@dronecode.org.uk> <5506F9B1.9050008@dronecode.org.uk> <550A6ED0.2030000@gmail.com> In-Reply-To: <550A6ED0.2030000@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00066.txt.bz2 On 19/03/2015 06:38, asmwarrior wrote: > On 2015-3-19 13:05, Benjamin Gilbert wrote: >> On Mon, Mar 16, 2015 at 11:41 AM, Jon TURNEY 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 support this option. You need a recent binutils (2.25 or later). If you have that, it should work.