This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [WIP]: LOC_COMPUTED and LOC_COMPUTED_ARG
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Daniel Berlin <dan at dberlin dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 06 Apr 2002 21:24:31 -0500
- Subject: Re: [WIP]: LOC_COMPUTED and LOC_COMPUTED_ARG
- References: <Pine.LNX.4.44.0204062103440.28166-100000@dberlin.org>
>
> I'm confused now.
> I grepped for frame->base, and find no occurrences of it.
Try frame->frame $frame.base is the variable I'm adding that gives
access to the corresponding value.
> 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."
Yes, and as far as I can tell the value of DW_AT_frame_base (3.3.5?)
should have previously been computed as frame->frame.
> I'm just doing what the spec says, nothing more, nothing less.
> :)
I'm trying to save work :-)
Andrew