This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] Support DW_OP_breg for tracepoints
- From: Jim Blandy <jimb at red-bean dot com>
- To: Randolph Chung <randolph at tausq dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 13 Nov 2005 15:39:06 -0800
- Subject: Re: [RFA/RFC] Support DW_OP_breg for tracepoints
- References: <43775DDB.6020408@tausq.org>
On 11/13/05, Randolph Chung <randolph@tausq.org> wrote:
> Warning: I don't really understand how this works :-)
>
> On hppa-linux, when running gdb.trace/save-trace.exp, the test fails
> because of:
>
> "Unsupported DWARF opcode in the location of q1"
>
> The opcode in question is "DW_OP_breg3". The attached patch attempts to
> add support for DW_OP_breg0..DW_OP_breg31. With this patch hppa-linux
> passes the testcase, although not really understanding DWARF-2 I am not
> certain this is 100% correct. DWARF experts, comments appreciated.
Why are you adding the offset twice? Is it just cut-and-paste from
the DW_OP_fbreg code? That looks wrong, too.
This code should go in ax-gdb.[ch]. That has a translator from GDB
expressions to agent expressions; it would make sense to also have a
translator from Dwarf expressions to agent expressions.