Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tom@tromey.com>
Cc: gdb@sourceware.org
Subject: Re: Using separate debug info files with Windows DLLs
Date: Sun, 19 Aug 2018 16:55:00 -0000	[thread overview]
Message-ID: <83tvnqe1pd.fsf@gnu.org> (raw)
In-Reply-To: <8736vagvi5.fsf@tromey.com> (message from Tom Tromey on Sun, 19	Aug 2018 10:40:34 -0600)

> From: Tom Tromey <tom@tromey.com>
> Cc: gdb@sourceware.org
> Date: Sun, 19 Aug 2018 10:40:34 -0600
> 
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> 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.


      reply	other threads:[~2018-08-19 16:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-18 13:23 Eli Zaretskii
2018-08-19 16:40 ` Tom Tromey
2018-08-19 16:55   ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83tvnqe1pd.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox