From: Simon Marchi Date: Fri, 26 Sep 2014 14:35:12 +0000 (-0400) Subject: Don't prune program spaces when doing "maintenance info program-spaces" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a73c2b56cd87f709fb9118232b19cdf516edfb10;p=binutils-gdb.git Don't prune program spaces when doing "maintenance info program-spaces" Remove the pruning of program spaces in print_program_space to remove unwanted side-effects. "info" commands and print routines should generally not change the state of the debugger. gdb/Changelog: * progspace.c (print_program_space): Don't prune program spaces before printing them. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dbd222d7760..f0be36f3c9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-09-26 Simon Marchi + + * progspace.c (print_program_space): Don't prune program spaces + before printing them. + 2014-09-25 Pedro Alves * infrun.c (user_visible_resume_ptid): Don't check diff --git a/gdb/progspace.c b/gdb/progspace.c index a74b6abbd97..b111a50471b 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -281,10 +281,6 @@ print_program_space (struct ui_out *uiout, int requested) int count = 0; struct cleanup *old_chain; - /* Might as well prune away unneeded ones, so the user doesn't even - seem them. */ - prune_program_spaces (); - /* Compute number of pspaces we will print. */ ALL_PSPACES (pspace) {