aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-05-17 11:59:34 -0700
committerDoug Evans <xdje42@gmail.com>2014-05-17 11:59:34 -0700
commitbed8455c71aa68852723b031f8f6c4adbd683c9c (patch)
tree7b19d4e5890cbcef27f26130c4d531eb7bacc1ba /gdb/inferior.c
parent77f730a2f5cef30db27d251d9006284252903d24 (diff)
* inferior.c (prune_inferiors): Fix comment.
(remove_inferior_command): Call prune_program_spaces.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 90d9649ec9..23da0c7fe4 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -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 *