From bed8455c71aa68852723b031f8f6c4adbd683c9c Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sat, 17 May 2014 11:59:34 -0700 Subject: [PATCH] * inferior.c (prune_inferiors): Fix comment. (remove_inferior_command): Call prune_program_spaces. --- gdb/ChangeLog | 5 +++++ gdb/inferior.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3ee62f3b6..d7da65642c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-05-17 Doug Evans + + * inferior.c (prune_inferiors): Fix comment. + (remove_inferior_command): Call prune_program_spaces. + 2014-05-16 Doug Evans New command line option -D. 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 *