diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-15 00:47:45 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-09-15 00:47:45 +0000 |
commit | 06f63f95db91d560f8776bb7aa49c5053c331aaa (patch) | |
tree | ebeb80995c62554d5558cc6e9519bc55b7b5219e /gdb/testsuite/gdb.stabs | |
parent | * stabsread.c (read_type): Process "s" (size) type attribute. (diff) | |
download | binutils-gdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.tar.gz binutils-gdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.tar.bz2 binutils-gdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.zip |
* gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name.
(do_tests): Remove xfail for whatis on one_var and two_var.
Diffstat (limited to 'gdb/testsuite/gdb.stabs')
-rw-r--r-- | gdb/testsuite/gdb.stabs/wierd.exp | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/gdb/testsuite/gdb.stabs/wierd.exp b/gdb/testsuite/gdb.stabs/wierd.exp index 56d17b32ec1..bcc9be5e337 100644 --- a/gdb/testsuite/gdb.stabs/wierd.exp +++ b/gdb/testsuite/gdb.stabs/wierd.exp @@ -144,19 +144,22 @@ field3 = 0x77888877\}" "print struct constant" gdb_test "p array1" " = \{42, 43, 44\}" "array1 with strange index" # GDB does not yet support this feature - setup_xfail "*-*-*" - gdb_test "whatis one_var" "type = inttype_one" "whatis one_var" + gdb_test "whatis one_var" "type = inttype_one" \ + "whatis one_var (known failure in gdb 4.10)" # But do make sure that it prints as something reasonable - gdb_test "whatis one_var" "type = inttype(|_one)" "whatis one_var test 2" + gdb_test "whatis one_var" "type = inttype(|_one)" \ + "whatis one_var test 2" - setup_xfail "*-*-*" - gdb_test "whatis two_var" "type = inttype_two" "whatis two_var" - gdb_test "whatis two_var" "type = inttype(|_two)" "whatis two_var test 2" + gdb_test "whatis two_var" "type = inttype_two" \ + "whatis two_var (known failure in gdb 4.10)" + # But do make sure that it prints as something reasonable + gdb_test "whatis two_var" "type = inttype(|_two)" \ + "whatis two_var test 2" setup_xfail "*-*-*" - gdb_test "whatis pointer_to_int_var" "type = int \*" "whatis p t i v" + gdb_test "whatis pointer_to_int_var" "type = int \*" setup_xfail "*-*-*" - gdb_test "whatis intp_var" "type = intp" "whatis intp_var" + gdb_test "whatis intp_var" "type = intp" # xcoffread.c doesn't understand common blocks at all setup_xfail "rs6*-*-aix*" @@ -197,7 +200,12 @@ proc print_wierd_var { var } { # If somehow the stabs got skipped, then the above test can # pass because GDB assumes int for variables without a stab. - gdb_test "whatis $var" "type = (unsigned int|inttype)" "whatis on $var" + # This doesn't work because 32=45 doesn't preserve the name in + # gdb (as of 14 Sep 93 anyway). + #gdb_test "whatis $var" "type = (unsigned int|inttype)" + + # But the size should be right. + gdb_test "print sizeof ($var)" "= 4" } # Start with a fresh gdb |