[PATCH [1/2] Add support for DW_OP_bit_piece and DW_OP_plus_uconst to DWARF assembler.

Andrew Burgess
2013-12-04T15:25:20Z

Add some additional DW_OP_ support to the DWARF assembler.

OK to apply?

Thanks,
Andrew

gdb/testsuite/ChangeLog

* lib/gdb.exp (_location): Handle DW_OP_bit_piece and
DW_OP_plus_uconst.

diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index c28b986..e916477 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -716,10 +716,19 @@ namespace eval Dwarf {
_op .sleb128 [lindex $line 1]
}

+ DW_OP_plus_uconst {
+ _op .uleb128 [lindex $line 1]
+ }
+
DW_OP_piece {
_op .uleb128 [lindex $line 1]
}

+ DW_OP_bit_piece {
+ _op .uleb128 [lindex $line 1]
+ _op .uleb128 [lindex $line 2]
+ }
+
DW_OP_GNU_implicit_pointer {
if {[llength $line] != 3} {
error "usage: DW_OP_GNU_implicit_pointer LABEL OFFSET"