From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75989 invoked by alias); 19 Mar 2015 06:31:24 -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 75975 invoked by uid 89); 19 Mar 2015 06:31:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f43.google.com Received: from mail-pa0-f43.google.com (HELO mail-pa0-f43.google.com) (209.85.220.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 19 Mar 2015 06:31:22 +0000 Received: by pabxg6 with SMTP id xg6so53337006pab.0 for ; Wed, 18 Mar 2015 23:31:20 -0700 (PDT) X-Received: by 10.66.248.40 with SMTP id yj8mr53481910pac.141.1426746680436; Wed, 18 Mar 2015 23:31:20 -0700 (PDT) Received: from [192.168.1.104] ([115.199.126.10]) by mx.google.com with ESMTPSA id x3sm1018566pdo.0.2015.03.18.23.31.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Mar 2015 23:31:19 -0700 (PDT) Message-ID: <550A6ED0.2030000@gmail.com> Date: Thu, 19 Mar 2015 06:31:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Benjamin Gilbert , Jon TURNEY 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-03/txt/msg00064.txt.bz2 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 supoort this option. Yuanhui Zhang