(remove_inferior_command): Call prune_program_spaces.
+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.
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)
delete_inferior_1 (inf, 1);
}
+
+ prune_program_spaces ();
}
struct inferior *