aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/server-mon.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.server/server-mon.exp')
-rw-r--r--gdb/testsuite/gdb.server/server-mon.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.server/server-mon.exp b/gdb/testsuite/gdb.server/server-mon.exp
index ffe95bc..ca9ee3e 100644
--- a/gdb/testsuite/gdb.server/server-mon.exp
+++ b/gdb/testsuite/gdb.server/server-mon.exp
@@ -36,6 +36,10 @@ gdb_start
gdb_load $binfile
gdb_reinitialize_dir $srcdir/$subdir
+# Make sure we're disconnected, in case we're testing with an
+# extended-remote board, therefore already connected.
+gdb_test "disconnect" ".*"
+
gdbserver_run ""
gdb_test_multiple "monitor help" "monitor help" {