aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2014-09-26 10:35:12 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2014-09-26 10:35:12 -0400
commita73c2b56cd87f709fb9118232b19cdf516edfb10 (patch)
tree2e86939eb936dca776574c580fe45c6bab6b125a /gdb/progspace.c
parent1707f183446fae9aca8523c1ebf721bcf2472008 (diff)
downloadgdb-a73c2b56cd87f709fb9118232b19cdf516edfb10.zip
gdb-a73c2b56cd87f709fb9118232b19cdf516edfb10.tar.gz
gdb-a73c2b56cd87f709fb9118232b19cdf516edfb10.tar.bz2
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.
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r--gdb/progspace.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c
index a74b6ab..b111a50 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)
{