aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/display.exp
diff options
context:
space:
mode:
authorNicholas Duffek <nsd@redhat.com>2000-11-17 17:13:33 +0000
committerNicholas Duffek <nsd@redhat.com>2000-11-17 17:13:33 +0000
commit1aca8eb7fa344f6ebb2bd039307113012da7de4f (patch)
treec3c648bd6a6765b3d23c940284cba1d7953b5dfc /gdb/testsuite/gdb.base/display.exp
parent930764990dffdc53fe322f7db4ac952fd5d0446f (diff)
downloadgdb-1aca8eb7fa344f6ebb2bd039307113012da7de4f.zip
gdb-1aca8eb7fa344f6ebb2bd039307113012da7de4f.tar.gz
gdb-1aca8eb7fa344f6ebb2bd039307113012da7de4f.tar.bz2
* gdb.base/display.exp: Don't kill running stub. Add "again" to
the second kill and detach messages.
Diffstat (limited to 'gdb/testsuite/gdb.base/display.exp')
-rw-r--r--gdb/testsuite/gdb.base/display.exp27
1 files changed, 14 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp
index 3700748..e7f131b 100644
--- a/gdb/testsuite/gdb.base/display.exp
+++ b/gdb/testsuite/gdb.base/display.exp
@@ -49,22 +49,23 @@ gdb_load ${binfile}
# Some coverage stuff
#
-gdb_test "kill" ".*The program is not being run.*"
-gdb_test "detach" ".*"
-gdb_test "run" ".*"
-
-gdb_load ${binfile}
-gdb_test "kill" ".*"
-gdb_test "detach" ".*"
+if ![target_info exists use_gdb_stub] {
+ gdb_test "kill" ".*The program is not being run.*"
+ gdb_test "detach" ".*"
+ gdb_test "run" ".*"
+
+ gdb_load ${binfile}
+ gdb_test "kill" ".*" "kill again"
+ gdb_test "detach" ".*" "detach again"
+
+ gdb_exit
+ gdb_start
+ gdb_reinitialize_dir $srcdir/$subdir
+ gdb_load ${binfile}
+}
# Ok, on to real life
#
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
if ![runto_main] then {
fail "Could not run to main - other tests will fail."
continue