summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.stabs/wierd.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.stabs/wierd.exp')
-rw-r--r--gdb/testsuite/gdb.stabs/wierd.exp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.stabs/wierd.exp b/gdb/testsuite/gdb.stabs/wierd.exp
index a8afcecebf0..a734a057c22 100644
--- a/gdb/testsuite/gdb.stabs/wierd.exp
+++ b/gdb/testsuite/gdb.stabs/wierd.exp
@@ -157,6 +157,17 @@ field3 = 0x77888877\}" "print struct constant"
gdb_test "whatis pointer_to_int_var" "type = int \*" "whatis p t i v"
setup_xfail "*-*-*"
gdb_test "whatis intp_var" "type = intp" "whatis intp_var"
+
+ gdb_test "p common0var0" "= 42"
+ # GDB seems to only understand common blocks local to a function.
+ # These variables never get relocated to be relative to the common
+ # block.
+ # I'm not sure whether it is valid to have a common block which
+ # is not local to a function.
+ setup_xfail "*-*-*"
+ gdb_test "p common0var1" "= 24"
+ setup_xfail "*-*-*"
+ gdb_test "p common0var2" "= 22"
}
proc print_wierd_var { var } {