Fix reconnecting to a gdbserver already debugging multiple processes, I
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.server / extended-remote-restart.exp
index b34027348efff07db6018ad1d52c936e9500fe07..3ce0f0b076ab8210580ce97d96d5b85a509f3b0f 100644 (file)
@@ -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.026846 seconds and 4 git commands to generate.