Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa/doco] FRAME_FP -> read_fp
Date: Wed, 20 Nov 2002 08:26:00 -0000	[thread overview]
Message-ID: <3DDBB787.90007@redhat.com> (raw)
In-Reply-To: <Pine.SUN.3.91.1021120075713.24803C-100000@is>

> On Tue, 19 Nov 2002, Andrew Cagney wrote:
> 
> 
>> This patch updates the doco so that it better reflects GDB's current 
>> implementation of create_new_frame().
>> 
>> ok?
> 
> 
> Ahm, what does this mean, exactly, "read_fp in the machine description"?  
> Isn't read_fp a function?  If so, how can it be present ``in the machine 
> description''?

regcache.c contains:

CORE_ADDR
read_fp (void)
{
   return TARGET_READ_FP ();
}

and TARGET_READ_FP() is part of the machine description (a.k.a. 
architecture vector).


> In case it isn't clear, I refer to this text:
> 
>   +@code{read_fp} in the machine description has no meaning

The full text is:

> @findex create_new_frame
> @vindex read_fp
> @code{read_fp} in the machine description has no meaning to the
> machine-independent part of @value{GDBN}, except that it is used when
> setting up a new frame from scratch, as follows:
> 
> @smallexample
> create_new_frame (read_fp (), read_pc ()));
> @end smallexample

And the only change I made was to update things to refer to read_fp() 
instead of FRAME_FP().  The description is correct.  As far as the 
machine independant code is concerned, read_fp() returns a magic number.

The text then goes on to mention:

> @cindex frame pointer register
> Other than that, all the meaning imparted to @code{FP_REGNUM} is
> imparted by the machine-dependent code.  So, @code{FP_REGNUM} can have
> any value that is convenient for the code that creates new frames.
> (@code{create_new_frame} calls @code{INIT_EXTRA_FRAME_INFO} if it is
> defined; that is where you should use the @code{FP_REGNUM} value, if
> your frames are nonstandard.)

Hmm, I guess this could do with a similar s/FP_REGNUM/read_fp/ 
transformation?

Andrew



  reply	other threads:[~2002-11-20 16:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-19 12:00 Andrew Cagney
2002-11-19 21:59 ` Eli Zaretskii
2002-11-20  8:26   ` Andrew Cagney [this message]
2002-11-20  9:20     ` Eli Zaretskii
2003-01-29 15:49       ` 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=3DDBB787.90007@redhat.com \
    --to=ac131313@redhat.com \
    --cc=eliz@is.elta.co.il \
    --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