From: Jim Kingdon Date: Wed, 15 Sep 1993 00:47:45 +0000 (+0000) Subject: * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name. X-Git-Tag: gdb-4_18~17419 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06f63f95db91d560f8776bb7aa49c5053c331aaa;p=platform%2Fupstream%2Fbinutils.git * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name. (do_tests): Remove xfail for whatis on one_var and two_var. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c026028362a..23702a9bef9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,13 @@ +Tue Sep 14 17:16:44 1993 Jim Kingdon (kingdon@cirdan.cygnus.com) + + * gdb.stabs/wierd.exp (print_wierd_var): Test size, not type name. + (do_tests): Remove xfail for whatis on one_var and two_var. + +Wed Sep 8 23:14:23 1993 Rob Savoye (rob@darkstar.cygnus.com) + + * Makefile.in: Made cross building work better by adding + {RUNTEST,CC}_FOR_TARGET and using TARGET_FLAGS_TO_PASS. + Tue Sep 7 14:11:52 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * gdb.t15/{return.c,return.exp,Makefile.in}: 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