public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: William Adair <will.adair01@gmail.com>
To: Hannes Domani <ssbssa@yahoo.de>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: GDB Incorrectly Reads & Resolves Shared Library Symbols [MinGW-w64]
Date: Sun, 1 Nov 2020 10:44:26 -0500	[thread overview]
Message-ID: <CAHj+M4+=HvBCbntxwYKfrH30BQ=7stDBONeYi3ASwbRzm8ebww@mail.gmail.com> (raw)
In-Reply-To: <1513277520.1719132.1604242384163@mail.yahoo.com>

Hannes,

Unfortunately, I do not. It appears I'm left with little choice but to
debug GDB itself while it's debugging the executable that loads the shared
library. I'll add that I am using a custom linker command file and that may
be ruining some predefined expectation from GDB on what data should be in
certain sections, but I haven't dug far enough into GDB source to figure
out how it loads symbols from the binary image, yet.

On Sun, Nov 1, 2020 at 9:53 AM Hannes Domani <ssbssa@yahoo.de> wrote:

>  Am Sonntag, 1. November 2020, 00:26:34 MEZ hat William Adair via Gdb <
> gdb@sourceware.org> Folgendes geschrieben:
>
> > Can anyone recommend a way to start debugging GDB? I've found that when I
> > compile a 32-bit shared library that GDB is unable to correctly resolve
> the
> > symbols in the image and set breakpoints. Even when I reach a segfault
> and
> > print the backtrace, the symbols are incorrect or flat out missing. I
> > already verified that the image has .debug_* sections as would be
> required
> > for DWARF debugging, so I'm perplexed as to why GDB cannot correctly
> > resolve it and am looking for guidance.
> >
> > Thank you.
>
> Do you have a (small) example where this problem can be reproduced?
>
>
> Hannes
>

  reply	other threads:[~2020-11-01 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-31 23:26 William Adair
2020-11-01 14:53 ` Hannes Domani
2020-11-01 15:44   ` William Adair [this message]
2020-11-01 18:28 ` Andrew Dinn
2020-11-03 23:20   ` William Adair
2020-11-04  9:39     ` Andrew Dinn

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='CAHj+M4+=HvBCbntxwYKfrH30BQ=7stDBONeYi3ASwbRzm8ebww@mail.gmail.com' \
    --to=will.adair01@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=ssbssa@yahoo.de \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).