Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: [rfc] frame->frame => frame->addr && frame->base()
Date: Thu, 11 Apr 2002 16:42:00 -0000	[thread overview]
Message-ID: <3CB61F60.6070607@cygnus.com> (raw)
In-Reply-To: <1020411222935.ZM4098@localhost.localdomain>

> // High level language concept of the base address of a frame.  Often 
>> refered to as ``frame_base'' or ``frame pointer''.  This value should 
>> only be computed on-demand.  It is strongly recommended, though, that 
>> implementations cache the computed value in the frame cache.  The method 
>> is initialized as part of the frame objects creation.  The default 
>> method returns frame->addr.  (see dwarf2 DW_AT_frame_base)
>> 
>> CORE_ADDR (*base) (struct frame_info *frame);
> 
> 
> This translates the CFA (canonical frame address) into an address that's
> useful for some other purpose, right?  What are the purposes that it
> would be used for?

Strictly speaking it doesn't translate a CFA.  The CFA is something 
private to the CFI code.   It is just that it happens to evaluate to the 
same value.

In dwarf2, the debug info may indicate that both ->addr and ->base have 
the value of [r31]+10.

> (My worry is that there may be more than one translation which might
> prove to be useful.)

True.

The intent is for dwarf2 where a location expression can contain 
references to ``fpreg''.  That is really a reference to the current 
value of DW_AT_frame_base.  I guess the comment should emphasize how it 
relates to debug info and the debug ``frame base'' register.

Andrew


  reply	other threads:[~2002-04-11 23:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 13:56 Andrew Cagney
2002-04-11 15:29 ` Kevin Buettner
2002-04-11 16:42   ` Andrew Cagney [this message]
2002-04-12  5:54     ` Richard Earnshaw
2002-04-12  7:05       ` Andrew Cagney
2002-04-12  5:50 ` Richard Earnshaw
2002-04-12  6:38   ` Andrew Cagney
2002-04-12  8:53     ` Kevin Buettner
2002-04-12  9:05       ` Andrew Cagney
2002-04-12 14:59 ` Jim Blandy
2002-04-26  7:58 ` 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=3CB61F60.6070607@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb@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