aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@broadcom.com>2013-07-30 15:36:18 +0000
committerAndrew Burgess <aburgess@broadcom.com>2013-07-30 15:36:18 +0000
commit11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5 (patch)
tree42d25c4ed0f79de5b0a208133d6aee8903601ce5 /gdb/testsuite/gdb.dwarf2
parentb0c54aa509c4f909648c59837a4877ec27b64135 (diff)
downloadgdb-11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5.zip
gdb-11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5.tar.gz
gdb-11b4b7cc1fdcc85aeeb79d7bb1cac64542404cd5.tar.bz2
Don't raise an error for optimized out sub-fields.
http://sourceware.org/ml/gdb-patches/2013-07/msg00317.html gdb/ChangeLog * value.c (value_fetch_lazy): Mark optimized out values as such rather than raising an error. gdb/testsuite/ChangeLog * gdb.dwarf2/pieces-optimized-out.exp: Expect "<optimized out>" when printing an optimized out value. Expect an error when using an optimized out value in an expression.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp b/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
index 2e4d028..4effb30 100644
--- a/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
+++ b/gdb/testsuite/gdb.dwarf2/pieces-optimized-out.exp
@@ -44,6 +44,7 @@ gdb_test "p s" \
"print s"
gdb_test "p s.a" " = 5" "print s.a"
gdb_test "p s.b" " = <optimized out>" "print s.b"
-gdb_test "p s.c" "value has been optimized out" "print s.c"
-gdb_test "p s.d" "value has been optimized out" "print s.d"
+gdb_test "p s.c" " = <optimized out>" "print s.c"
+gdb_test "p s.d" " = <optimized out>" "print s.d"
+gdb_test "p s.d + 1" "value has been optimized out" "print s.d + 1"