Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Berlin <dan@dberlin.org>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [WIP]: LOC_COMPUTED and LOC_COMPUTED_ARG
Date: Sat, 06 Apr 2002 18:08:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0204062103440.28166-100000@dberlin.org> (raw)
In-Reply-To: <3CAF9F8E.6030607@cygnus.com>

On Sat, 6 Apr 2002, Andrew Cagney wrote:

> > and
> >> 
> > 
> >> > - the frame base address (for DW_OP_fbreg)
> >> > 
> >> > 
> >> > Not possible.
> >> > the frame base can be a location list.
> >> > That's why it pulls it out of the frame function on the fly. 
> > 
> >> 
> >> Something I've never understood.  Shouldn't frame_base be stored in 
> >> frame->base as part of the initial frame creation.  Hence avoiding this 
> >> recursion?
> > 
> > 
> > Theoretically you could, but it's sort of pointless.
> > You still end up doing the same lookup.
> > It also hides the code, since the code to create frames is nowhere 
> > near the dwarf2 reader.
> 
> I'm still missing something.  If dwarf2 info isn't used to compute 
> frame->base (and frame->prev->pc) where are the values comming from?

I'm confused now.
I grepped for frame->base, and find no occurrences of it.

Anyway, DW_OP_fbreg has a special meaning.
It specifically means "Use the value you get from evaluating the 
DW_AT_frame_base attribute of the current function".  So that's what we do.  
Even more specifically, "The DW_OP_fbreg operation provides a signed 
LEB128 offset from the address specified by the location description in 
the DW_AT_frame_base attribute of the current function."

I'm just doing what the spec says, nothing more, nothing less.
:)


> > Andrew
> 


  reply	other threads:[~2002-04-07  2:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-26  8:02 Daniel Berlin
2002-04-06 16:34 ` Andrew Cagney
2002-04-06 16:41   ` Daniel Berlin
2002-04-06 17:23     ` Andrew Cagney
2002-04-06 18:08       ` Daniel Berlin [this message]
2002-04-06 18:24         ` 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=Pine.LNX.4.44.0204062103440.28166-100000@dberlin.org \
    --to=dan@dberlin.org \
    --cc=ac131313@cygnus.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