From: Randolph Chung <randolph@tausq.org>
To: gdb@sources.redhat.com
Cc: kettenis@gnu.org
Subject: Re: [RFC] Is skip_prologue_using_sal actually usable?
Date: Tue, 09 Nov 2004 02:43:00 -0000 [thread overview]
Message-ID: <20041109022658.GO15714@tausq.org> (raw)
In-Reply-To: <200411071355.iA7DtfTE002934@elgar.sibelius.xs4all.nl>
> It defenitely has bugs; if the compiler only generates a single line
> table entry for a function, it will skip the entire function.
fwiw hppa-tdep.c has this workaround/bugfix as well....
> Back in the old days, when prologues were fixed, 1 and 2 were pretty
> much equivalent. However, these days, with compilers migrating many
> instructions into the prologue, the difference can be huge, and making
> the wrong choice can be very annoying.
i was just debugging a problem today with stack unwinding on hppa when i
saw this... this is exactly the problem! :-(
> The drawback of implementation 1 is mainly that the prologue isn't
> completely finished when GDB stops. This means that GDB might not
> print function arguments correctly because the stack frame hasn't been
> fully setup yet.
it will also not unwind properly (on hppa) because we cannot find the
previous functions pc and sp. the hppa target has some code to skip the
prologue in a different way if line number information is not available,
but when it is available we use it, causing unwinding to fail.
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
next prev parent reply other threads:[~2004-11-09 2:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-07 14:28 Mark Kettenis
2004-11-09 2:43 ` Randolph Chung [this message]
2004-11-09 10:16 ` Daniel Jacobowitz
2004-11-09 14:35 ` Mark Kettenis
2004-11-09 14:51 ` Daniel Jacobowitz
2004-11-09 14:56 ` Andrew Cagney
2004-11-09 16:07 ` Mark Kettenis
2004-11-09 16:55 ` Daniel Jacobowitz
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=20041109022658.GO15714@tausq.org \
--to=randolph@tausq.org \
--cc=gdb@sources.redhat.com \
--cc=kettenis@gnu.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