This is the mail archive of the gdb-patches@sourceware.org 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: [RFA/RFC] Support DW_OP_breg for tracepoints


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.


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