From: Randolph Chung <randolph@tausq.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [hppa] FYI: confusion in unwind descriptor field meaning
Date: Sat, 12 Nov 2005 03:32:00 -0000 [thread overview]
Message-ID: <437548AF.5090107@tausq.org> (raw)
In-Reply-To: <20051111001017.GJ1635@adacore.com>
> After your feedback, I'm starting to think that this whole unwind
> record thing is a wasp nest. This is loud thinking at this stage,
> but let me suggest something heretical: How about to stop using
> the unwind record to do the unwinding? We scan the prologue as we've
> always done, and collect all the information, including the fact that
> the function has a frame pointer or not. Then we don't need use
> the unwind record, except maybe to determine the function start
> address. I think we might even be able to dump the FP_REGNUM
> entirely.
How do you find the end of the prologue without consulting the unwind
data? Right now one heuristic is "scan the code until you hit a branch",
which works but might mean you scan way too much code. I'm also not
certain if this will work correctly for things like alloca, but it might.
For that matter, how do you find the beginning of the function without
unwind data? Right now the hppa backend can determine this even in the
absence of other debug (stabs, dwarf) info, although it might end up
printing the wrong function name in a backtrace.
> The good thing is that I don't think we'll need that many changes
> to the code to get to that point. Improve a bit the code scanner
> to retrieve the information that we normally dig out of the unwind
> record, and we should have something at least marginally working.
> The other advantage is that now the debugger doesn't need to know
> what compiler produced the object. So I'll be able to share the changes
> we make internally too. What do you think?
Making gdb more compiler independent is of course a good thing, but I
don't know that we want to get rid of the unwind record altogether.
OTOH, if you can combine all the prologue analysis code in hppa-tdep.c
and make it more robust, I think it will certainly be a good thing.
randolph
next prev parent reply other threads:[~2005-11-12 1:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-09 23:55 Joel Brobecker
2005-11-10 1:27 ` Randolph Chung
2005-11-10 1:31 ` Joel Brobecker
2005-11-10 1:32 ` Randolph Chung
2005-11-10 19:18 ` Randolph Chung
2005-11-11 11:22 ` Joel Brobecker
2005-11-12 3:32 ` Randolph Chung [this message]
2005-11-12 4:22 ` Jim Blandy
2005-11-12 4:39 ` Jim Blandy
2005-11-12 4:59 ` Randolph Chung
2005-11-12 5:07 ` Jim Blandy
2005-11-12 13:21 ` Randolph Chung
2005-11-12 17:08 ` Jim Blandy
2005-11-13 15:38 ` Randolph Chung
2005-11-13 18:27 ` Daniel Jacobowitz
2005-11-19 19:15 ` Randolph Chung
2005-11-13 18:23 ` Joel Brobecker
2005-11-13 18:28 ` Daniel Jacobowitz
2005-11-13 18:36 ` Joel Brobecker
2005-11-13 18:45 ` 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=437548AF.5090107@tausq.org \
--to=randolph@tausq.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.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