[RFA/RFC] Support DW_OP_breg for tracepoints

Randolph Chung randolph@tausq.org
Sun Nov 13 18:10:00 GMT 2005


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.

I was going to write the code for DW_OP_bregx too, but I'm not sure how 
that is supposed to work in terms of the "size" argument to that 
function since there are two params to read off the stack. In any case 
since I can't test that case easily I haven't written any code for it.

Comments? ok to check in?

randolph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d.diff
Type: text/x-patch
Size: 1501 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20051113/344091d9/attachment.bin>


More information about the Gdb-patches mailing list