* inferior.c (prune_inferiors): Fix comment.
authorDoug Evans <xdje42@gmail.com>
Sat, 17 May 2014 18:59:34 +0000 (11:59 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 17 May 2014 18:59:34 +0000 (11:59 -0700)
(remove_inferior_command): Call prune_program_spaces.

gdb/ChangeLog
gdb/inferior.c

index d3ee62f..d7da656 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-17  Doug Evans  <xdje42@gmail.com>
+
+       * inferior.c (prune_inferiors): Fix comment.
+       (remove_inferior_command): Call prune_program_spaces.
+
 2014-05-16  Doug Evans  <dje@google.com>
 
        New command line option -D.
index 90d9649..23da0c7 100644 (file)
@@ -475,8 +475,8 @@ have_live_inferiors (void)
   return inf != NULL;
 }
 
-/* Prune away automatically added program spaces that aren't required
-   anymore.  */
+/* Prune away any unused inferiors, and then prune away no longer used
+   program spaces.  */
 
 void
 prune_inferiors (void)
@@ -788,6 +788,8 @@ remove_inferior_command (char *args, int from_tty)
 
       delete_inferior_1 (inf, 1);
     }
+
+  prune_program_spaces ();
 }
 
 struct inferior *