]> Git Repo - binutils.git/blobdiff - gdb/testsuite/gdb.server/connect-without-multi-process.exp
Avoid another inferior_ptid reference in gdb/remote.c
[binutils.git] / gdb / testsuite / gdb.server / connect-without-multi-process.exp
index 6c7d162492f05453ec4eaa847a85838610d24d53..123089260dde2613b49e1d9ccabef49fca95cb5d 100644 (file)
@@ -14,7 +14,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 # Check that we can connect to GDBserver with the multiprocess
-# extensions disabled, and run to main.
+# extensions disabled, run to main, and finish the process.
 
 load_lib gdbserver-support.exp
 
@@ -52,6 +52,11 @@ proc do_test {multiprocess} {
        "target $gdbserver_protocol"
 
     gdb_test "continue" "main .*" "continue to main"
+
+    # The W/X packets do not include the PID of the exiting process
+    # without the multi-process extensions.  Check that we handle
+    # process exit correctly in that case.
+    gdb_continue_to_end
 }
 
 foreach multiprocess { "off" "auto" } {
This page took 0.026283 seconds and 4 git commands to generate.