From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>, gdb@sources.redhat.com
Subject: Re: [rfc] Add per frame frame_saved_pc()
Date: Fri, 20 Sep 2002 00:24:00 -0000 [thread overview]
Message-ID: <1020920072452.ZM24099@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@ges.redhat.com> "[rfc] Add per frame frame_saved_pc()" (Sep 19, 11:30pm)
On Sep 19, 11:30pm, Andrew Cagney wrote:
> Back to (trumpet noises) CFI and more fall-out from the MIPS and generic
> dummy frames.
>
> - The CFI doco describes a ``return_address_register'' which ``[...]
> might not correspond to a machine register''. This means a CFI specific
> frame saved PC method.
I'm not certain that this should (necessarily) drive our decisions.
> - Given a generic dummy frame, it knows exactly where the callers frame
> PC is. No need to ask the target code.
>
> With this in mind, I'd like to propose making frame_saved_pc() a
> per-frame method.
I'd be willing to look at a patch. In particular, what I'm curious
about it to see the places where the frame_saved_pc field is
initialized in the frame. I can picture how the generic dummy
frame code would look, but what I'm less clear about is what it'd
look like for normal frames. It seems to me that you have two choices,
1) have a generic method which falls back on the current machinery, or
2) have architecture specific methods. I'm more interested in how (2)
will be accomplished.
Kevin
next prev parent reply other threads:[~2002-09-20 7:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-19 20:30 Andrew Cagney
2002-09-20 0:24 ` Kevin Buettner [this message]
2002-09-20 8:11 ` Andrew Cagney
2002-09-21 18:08 ` Andrew Cagney
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=1020920072452.ZM24099@localhost.localdomain \
--to=kevinb@redhat.com \
--cc=ac131313@ges.redhat.com \
--cc=gdb@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