From: Andrew Cagney <ac131313@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] FRAME_FP() -> get_frame_base()
Date: Wed, 20 Nov 2002 18:26:00 -0000 [thread overview]
Message-ID: <3DDC4435.1080504@redhat.com> (raw)
In-Reply-To: <1021120213809.ZM26349@localhost.localdomain>
> I think get_frame_base() is a good choice. I like get_frame_address()
> too, but if using "base" somehow helps us to remember that this
> address remains constant, then that's a good thing.
I should note that I really don't have a preference. Depending on the
time of day, I'll favour get_frame_address() or get_frame_base().
> [...]
>
>> - (I guess) re-vamp the PPC so that get_frame_base() is constant through
>> out the lifetime of a frame.
>
>
> Yes, I guess so. I had to think about this a while though -- the current
> placement of ->frame makes a lot of sense.
Yes, given the PPC ABIs, the current code does make a lot of sense.
I've looked at changing it before but backed away.
The PPC could easily maintain both pointers. Have get_frame_XXX()
return a constant, but locally, use the stack top.
Two technical points, I think, swing things in favour of the change:
- gdb really needs a constant frame address if it is going to correctly
re-locate a frame after a target resume.
Without this, gdb can't get edge cases right. Eg, consider a stack like:
outer()
middle()
inner() #1
which is then transformed to:
outer()
middle()
inner() #1
inner() #2
Unless the frame is constant, gdb would mistake inner()#2 for inner()#1.
- the dummy frame code, for the PPC, needs to do a stack upwind when
trying to identify a dummy frame. It should be possible to avoid this.
Andrew
next prev parent reply other threads:[~2002-11-21 2:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-19 11:55 Andrew Cagney
2002-11-19 21:56 ` Eli Zaretskii
2002-11-20 8:26 ` Andrew Cagney
2002-11-20 13:38 ` Kevin Buettner
2002-11-20 18:26 ` Andrew Cagney [this message]
2002-11-22 17:32 ` Andrew Cagney
2002-11-24 10:46 ` Andrew Cagney
2002-11-24 15:06 ` muller
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=3DDC4435.1080504@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@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