From: Doug Evans Date: Sat, 17 May 2014 18:59:34 +0000 (-0700) Subject: * inferior.c (prune_inferiors): Fix comment. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bed8455c71aa68852723b031f8f6c4adbd683c9c;p=binutils-gdb.git * inferior.c (prune_inferiors): Fix comment. (remove_inferior_command): Call prune_program_spaces. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3ee62f3b6a..d7da65642cf 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 90d9649ec9e..23da0c7fe4d 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 *