This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [WIP]: LOC_COMPUTED and LOC_COMPUTED_ARG


> 
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]