Re: [RFA] Limited DW_OP_piece support

Andrew Cagney
2003-05-22T18:42:16Z

> On May 22, 1:53pm, Andrew Cagney wrote:
>
>
>> > The patch below adds limited DW_OP_piece support to dwarf2expr.c. I
>> > will post a patch to rs6000-tdep.c which illustrates what a
>> > ``dwarf2_compose_register_pieces'' method should look like.
>
>>
>> I think GDB needs to just learn about location lists :-/
>
>
> It certainly should, but I fail to see how that relates to the
> addition of DW_OP_piece support to GDB's DWARF 2 location expression
> evaluator. I think that what you meant to say is that GDB should
> fully (and generically) support arbitrary location expressions.
> (Remember that the term "location list" is used to describe objects
> whose location changes during its lifetime.)

Yes, too many context sensative terms. A list of sub-locations.

Given a ``struct value'', the [list of] sub-locations (pieces?) that
describe how to find that values raw bytes.

Andrew

> BTW, I notice that I forgot the ChangeLog entries for my patch. Here
> they are:
>
> * dwarf2expr.c (execute_stack_op): Add limited DW_OP_piece support.
> * gdbarch.sh (dwarf2_compose_register_pieces): New method.
> * gdbarch.c, gdbarch.h: Regenerate.
>
> Kevin
>