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 16:41:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.44.0204061936130.28028-100000@dberlin.org> (raw)
In-Reply-To: <3CAF9418.2090607@cygnus.com>
On Sat, 6 Apr 2002, Andrew Cagney wrote:
> > + 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?
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.
It makes it look like "magic" to someone looking at the evaluator.
>
> Andrew
>
>
next prev parent reply other threads:[~2002-04-07 0:41 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 [this message]
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=Pine.LNX.4.44.0204061936130.28028-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