aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/dwarf.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-08-24 01:53:06 +0000
committerYao Qi <yao@codesourcery.com>2013-08-24 01:53:06 +0000
commitb39a8faf7cc4901252a59b531074a092a80d2354 (patch)
tree84ee9fdc9203655562b52acf487b8e88f107cc1a /gdb/testsuite/lib/dwarf.exp
parentdb68bbae94107a8019ec2473cc96a87554205620 (diff)
downloadgdb-b39a8faf7cc4901252a59b531074a092a80d2354.zip
gdb-b39a8faf7cc4901252a59b531074a092a80d2354.tar.gz
gdb-b39a8faf7cc4901252a59b531074a092a80d2354.tar.bz2
gdb/testsuite/
* lib/dwarf.exp (_location): Handle DW_OP_deref_size. * gdb.trace/entry-values.c: New. * gdb.trace/entry-values.exp: New.
Diffstat (limited to 'gdb/testsuite/lib/dwarf.exp')
-rw-r--r--gdb/testsuite/lib/dwarf.exp8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index 1d3eb03..3977384 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -667,6 +667,14 @@ namespace eval Dwarf {
_op .sleb128 [lindex $line 2]
}
+ DW_OP_deref_size {
+ if {[llength $line] != 2} {
+ error "usage: DW_OP_deref_size SIZE"
+ }
+
+ _op .byte [lindex $line 1]
+ }
+
default {
if {[llength $line] > 1} {
error "Unimplemented: operands in location for $opcode"