This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Limited DW_OP_piece support
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Andrew Cagney <ac131313 at redhat dot com>, Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 22 May 2003 11:30:33 -0700
- Subject: Re: [RFA] Limited DW_OP_piece support
- References: <1030522170039.ZM30271@localhost.localdomain> <3ECD0E9A.9020908@redhat.com>
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.)
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