Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Andrew Cagney <ac131313@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] FRAME_FP() -> get_frame_base()
Date: Wed, 20 Nov 2002 13:38:00 -0000	[thread overview]
Message-ID: <1021120213809.ZM26349@localhost.localdomain> (raw)
In-Reply-To: Andrew Cagney <ac131313@redhat.com> "[patch/rfc] FRAME_FP() -> get_frame_base()" (Nov 19,  2:55pm)

On Nov 19,  2:55pm, Andrew Cagney wrote:

> The mechanics of the change are obvious.  The new function's name, 
> though, is not.  The following names come to mind:
> 
> get_frame_base()
> Hints that the address is some how associated with the frame's base. 
> Hopefully this conveys the notion that the address shouldn't change 
> throughout the lifetime of the frame.
> 
> get_frame_address()
> Like get_frame_base() but without that strong association with the 
> frame's base.  It does fit in well with the gdbarch methods 
> frame_locals_address() and frame_args_address() though.
> 
> get_frame_fp()
> Would associate the address with the `frame-pointer'.   I don't like 
> this one since, in the past, FP has been too closely associated to a 
> real register, and the register definitly changes across the lifetime of 
> the frame.
> 
> Preferences?

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 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.

Kevin


  parent reply	other threads:[~2002-11-20 21:38 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 [this message]
2002-11-20 18:26   ` Andrew Cagney
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=1021120213809.ZM26349@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=ac131313@redhat.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