* remote.c (extended_remote_mourn_1): Always call
[deliverable/binutils-gdb.git] / gdb / remote.c
index 81eef47eaf6e537ded7536ea9a86a2b228892e72..fa0b4bc13f39e879ea1568e5f2a5f30cb0956fcc 100644 (file)
@@ -6551,6 +6551,9 @@ extended_remote_mourn_1 (struct target_ops *target)
   /* Unlike "target remote", we do not want to unpush the target; then
      the next time the user says "run", we won't be connected.  */
 
+  /* Call common code to mark the inferior as not running.     */
+  generic_mourn_inferior ();
+
   if (have_inferiors ())
     {
       extern void nullify_last_target_wait_ptid ();
@@ -6562,10 +6565,6 @@ extended_remote_mourn_1 (struct target_ops *target)
     }
   else
     {
-      struct remote_state *rs = get_remote_state ();
-
-      /* Call common code to mark the inferior as not running. */
-      generic_mourn_inferior ();
       if (!remote_multi_process_p (rs))
        {
          /* Check whether the target is running now - some remote stubs
This page took 0.02813 seconds and 4 git commands to generate.