This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH [1/2] Add support for DW_OP_bit_piece and DW_OP_plus_uconst to DWARF assembler.
- From: Andrew Burgess <aburgess at broadcom dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 4 Dec 2013 15:24:44 +0000
- Subject: [PATCH [1/2] Add support for DW_OP_bit_piece and DW_OP_plus_uconst to DWARF assembler.
- Authentication-results: sourceware.org; auth=none
- References: <529F489F dot 7070805 at broadcom dot com>
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"