Fix reconnecting to a gdbserver already debugging multiple processes, I
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.server / extended-remote-restart.exp
index 39fcb9e2e585095f4e449cac2a6441700da0fa17..3ce0f0b076ab8210580ce97d96d5b85a509f3b0f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2018 Free Software Foundation, Inc.
+# Copyright 2018-2020 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -113,7 +113,9 @@ proc test_reload { do_kill_p follow_child_p } {
            "Check inferior was killed"
     }
 
-    # Reconnect to the target.
+    # Disconnect, and reconnect to the target.
+    gdb_test "disconnect" ".*"
+
     if { [gdb_reconnect] == 0 } {
        pass "reconnect after fork"
     } else {
This page took 0.025066 seconds and 4 git commands to generate.