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

> + 	case DW_OP_fbreg:
> + 	  {
> + 	    struct symbol *framefunc;
> + 	    unsigned char *datastart;
> + 	    unsigned char *dataend;
> + 	    struct dwarf_block *theblock;
> + 	    struct locexpr_baton *baton;
> + 
> + 	    framefunc = get_frame_function (frame);
> + 	    op_ptr = read_sleb128 (op_ptr, &offset);
> + 	    baton = SYMBOL_LOCATION_BATON (framefunc);
> + 	    theblock = &baton->locexpr;
> + 	    datastart = theblock->data;
> + 	    dataend = theblock->data + theblock->size;
> + 	    result = execute_stack_op (var, datastart, dataend, frame, 0, NULL) + offset;
> + 	  }
> + 	  break;

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?

Andrew



  reply	other threads:[~2002-04-07  0:34 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 [this message]
2002-04-06 16:41   ` Daniel Berlin
2002-04-06 17:23     ` Andrew Cagney
2002-04-06 18:08       ` Daniel Berlin
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=3CAF9418.2090607@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=dan@dberlin.org \
    --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