aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
parent77f730a2f5cef30db27d251d9006284252903d24 (diff)
downloadgdb-bed8455c71aa68852723b031f8f6c4adbd683c9c.zip
gdb-bed8455c71aa68852723b031f8f6c4adbd683c9c.tar.gz
gdb-bed8455c71aa68852723b031f8f6c4adbd683c9c.tar.bz2
* inferior.c (prune_inferiors): Fix comment.
(remove_inferior_command): Call prune_program_spaces.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/inferior.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d3ee62f..d7da656 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/inferior.c b/gdb/inferior.c
index 90d9649..23da0c7 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 *