summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/miscexprs.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-04-24 21:32:51 +0000
committerMichael Snyder <msnyder@vmware.com>2000-04-24 21:32:51 +0000
commitb84b7669fb731a8b47f1f95860c1cf121de5c0e1 (patch)
tree63243aca5a8cbbb164f7986d427c695956e0309e /gdb/testsuite/gdb.base/miscexprs.exp
parent447b43fa50e946d7287d01679839b0c476a2f941 (diff)
downloadbinutils-gdb-b84b7669fb731a8b47f1f95860c1cf121de5c0e1.tar.gz
2000-04-24 Michael Snyder <msnyder@seadog.cygnus.com>
* gdb.base/miscexprs.exp: make sizeof long array test portable. * gdb.base/ending-run.exp: After connecting to a remote target, but before running, the target will appear to be in a random location. Specify both a file and a line for breakpoints. Also, the function that calls main may be called 'init' rather than 'start'.
Diffstat (limited to 'gdb/testsuite/gdb.base/miscexprs.exp')
-rw-r--r--gdb/testsuite/gdb.base/miscexprs.exp23
1 files changed, 5 insertions, 18 deletions
diff --git a/gdb/testsuite/gdb.base/miscexprs.exp b/gdb/testsuite/gdb.base/miscexprs.exp
index 97784232c4d..f7a5fd26a6e 100644
--- a/gdb/testsuite/gdb.base/miscexprs.exp
+++ b/gdb/testsuite/gdb.base/miscexprs.exp
@@ -258,27 +258,14 @@ gdb_expect {
}
-if [istarget "hppa2.0w*-*-*"] then {
-send_gdb "print sizeof(lbig)\n"
+send_gdb "print sizeof(lbig)/sizeof(long)\n"
gdb_expect {
- -re ".\[0-9\]* = 7200.*$gdb_prompt $" {
- pass "print value of sizeof(lbig)"
+ -re ".\[0-9\]* = 900.*$gdb_prompt $" {
+ pass "print value of sizeof(lbig)/sizeof(long)"
}
- -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)" }
- timeout { fail "(timeout) print value of sizeof(lbig)" }
+ -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)/sizeof(long)" }
+ timeout { fail "(timeout) print value of sizeof(lbig)/sizeof(long)" }
}
-}
-
-if ![istarget "hppa2.0w*-*-*"] then {
-send_gdb "print sizeof(lbig)\n"
-gdb_expect {
- -re ".\[0-9\]* = 3600.*$gdb_prompt $" {
- pass "print value of sizeof(lbig)"
- }
- -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)" }
- timeout { fail "(timeout) print value of sizeof(lbig)" }
- }
-}
send_gdb "print ibig.i\[100\] << 2\n"
gdb_expect {