From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122695 invoked by alias); 19 Aug 2018 16:55:08 -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 122684 invoked by uid 89); 19 Aug 2018 16:55:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=gdbsourcewareorg, sk:gdbsou, U*gdb, gdb@sourceware.org X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 19 Aug 2018 16:55:06 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frQyi-0000mZ-EN for gdb@sourceware.org; Sun, 19 Aug 2018 12:55:04 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frQyi-0000mV-Bb; Sun, 19 Aug 2018 12:55:00 -0400 Received: from [176.228.60.248] (port=3349 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1frQyh-0000l8-Vx; Sun, 19 Aug 2018 12:55:00 -0400 Date: Sun, 19 Aug 2018 16:55:00 -0000 Message-Id: <83tvnqe1pd.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey CC: gdb@sourceware.org In-reply-to: <8736vagvi5.fsf@tromey.com> (message from Tom Tromey on Sun, 19 Aug 2018 10:40:34 -0600) Subject: Re: Using separate debug info files with Windows DLLs References: <83h8jrg65m.fsf@gnu.org> <8736vagvi5.fsf@tromey.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00042.txt.bz2 > From: Tom Tromey > Cc: gdb@sourceware.org > Date: Sun, 19 Aug 2018 10:40:34 -0600 > > >>>>> "Eli" == Eli Zaretskii writes: > > Eli> Does the "debug link" method work with Windows DLLs produces by MinGW > Eli> GCC and GNU Binutils? > > I think so. > > Eli> The "Separate Debug Files" node of the GDB manual talks only about > Eli> executables, and doesn't mention shared libraries. If those methods > Eli> are supposed to work with shared libraries in general, and Windows > Eli> DLLs in particular, then I wonder (a) would the Windows loader live in > Eli> peace with the additional .gnu_debuglink section that needs to be put > Eli> there, and (b) when will GDB load the debug info using this method? > > I don't know the answer to (a), but for (b), as far as I know, > coff_symfile_read is used for both executables and libraries; and at the > end of coff_symfile_read it has code to read the debug link and find the > separate debug file. This is done if the main objfile doesn't have any > debug info: > > /* Try to add separate debug file if no symbols table found. */ > if (!objfile_has_partial_symbols (objfile)) > { > [...] Thanks, I will try to use this some time. > I wonder if the build-id approach could be extended to COFF somehow. That would be nice, yes.