From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sourceware.org
Subject: Re: Debugging a frameless function
Date: Wed, 29 Apr 2009 18:54:00 -0000 [thread overview]
Message-ID: <20090429183946.GA28155@caradoc.them.org> (raw)
In-Reply-To: <83zldzco0p.fsf@gnu.org>
On Wed, Apr 29, 2009 at 09:28:54PM +0300, Eli Zaretskii wrote:
> My question is, how should GDB overcome the difficulty of a frameless
> function, when it tries to unwind a frame where EBP is used for
> holding a variable? Can someone please spot any missing pieces in the
> session below, and give me hints on where to look for the source of
> the trouble?
Sounds like the debug info is bad. If it tells GDB to look for
something relative to the frame base, and it tells GDB that the frame
base is in %ebp, but %ebp has a random variable, then the debug info
is incorrect. Check manually, using readelf -wi (and -wo if location
lists are in use).
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2009-04-29 18:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-29 18:39 Eli Zaretskii
2009-04-29 18:54 ` Daniel Jacobowitz [this message]
2009-04-29 19:09 ` Eli Zaretskii
2009-04-29 19:12 ` Mark Kettenis
2009-04-29 20:44 ` Eli Zaretskii
2009-05-02 9:23 ` Eli Zaretskii
2009-04-29 19:23 ` Daniel Jacobowitz
2009-04-29 19:24 ` Eli Zaretskii
2009-05-02 9:17 ` Eli Zaretskii
2009-04-29 18:57 ` Mark Kettenis
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=20090429183946.GA28155@caradoc.them.org \
--to=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
/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