aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-15 00:47:45 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-15 00:47:45 +0000
commit06f63f95db91d560f8776bb7aa49c5053c331aaa (patch)
treeebeb80995c62554d5558cc6e9519bc55b7b5219e /gdb/testsuite
parent5ed0ccafcaf8156bb866a2b3d681762053a08e55 (diff)
downloadgdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.zip
gdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.tar.gz
gdb-06f63f95db91d560f8776bb7aa49c5053c331aaa.tar.bz2
* 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')
-rw-r--r--gdb/testsuite/ChangeLog10
-rw-r--r--gdb/testsuite/gdb.stabs/wierd.exp26
2 files changed, 27 insertions, 9 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index c026028..23702a9 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 56d17b3..bcc9be5 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