aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-12-06 13:27:24 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-12-06 13:27:24 +0000
commit16b5a7cbaee2764f3e1be6772dbe1156c28daf1d (patch)
treea0d418885f8b457059369e48e83120d79bacfdc9 /gdb/testsuite
parent2b597f540fd53fa5a8ade24e32b4c86c274fccae (diff)
downloadgdb-16b5a7cbaee2764f3e1be6772dbe1156c28daf1d.zip
gdb-16b5a7cbaee2764f3e1be6772dbe1156c28daf1d.tar.gz
gdb-16b5a7cbaee2764f3e1be6772dbe1156c28daf1d.tar.bz2
Add support for DW_OP_bit_piece and DW_OP_plus_uconst to DWARF assembler.
https://sourceware.org/ml/gdb-patches/2013-12/msg00143.html gdb/testsuite/ChangeLog * lib/dwarf.exp: (Dwarf::_location): Handle DW_OP_bit_piece and DW_OP_plus_uconst.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/lib/dwarf.exp9
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7c47870..3937253 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-06 Andrew Burgess <aburgess@broadcom.com>
+
+ * lib/dwarf.exp: (Dwarf::_location): Handle DW_OP_bit_piece and
+ DW_OP_plus_uconst.
+
2013-12-06 Keven Boell <keven.boell@intel.com>
* lib/mi-support.exp (mi_list_varobj_children_range): Add
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"