From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25174 invoked by alias); 25 Sep 2014 14:44:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 25162 invoked by uid 89); 25 Sep 2014 14:44:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 25 Sep 2014 14:44:37 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 6F.3C.05330.114D3245; Thu, 25 Sep 2014 10:36:33 +0200 (CEST) Received: from [142.133.110.254] (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.87) with Microsoft SMTP Server (TLS) id 14.3.174.1; Thu, 25 Sep 2014 10:44:34 -0400 Message-ID: <54242A52.8060200@ericsson.com> Date: Thu, 25 Sep 2014 14:44:00 -0000 From: Simon Marchi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Sergio Durigan Junior , Doug Evans CC: gdb-patches Subject: Re: [PATCH] Don't prune program spaces when doing "maintenance info program-spaces" References: <1411582288-20967-1-git-send-email-simon.marchi@ericsson.com> <87sijgig81.fsf@redhat.com> In-Reply-To: <87sijgig81.fsf@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00731.txt.bz2 On 2014-09-24 10:30 PM, Sergio Durigan Junior wrote: > On Wednesday, September 24 2014, Doug Evans wrote: > >> IOW, how about move the call to prune_program_spaces to whatever >> caller wants it. > > As a note, after I commented on the patch, I noticed that the "prune" > argument may be unecessary indeed (and the "prunning" logic"), because > we are not prunning anything anymore. > > Anyway, I just wanted to say that I agree with removing this part of the > code, and moving it to more suitable parts. Fine with me. Here is the updated patch, much simpler now. gdb/Changelog: * progspace.c (print_program_space): Don't prune program spaces before printing them. --- gdb/progspace.c | 4 ---- 1 file changed, 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) { -- 2.1.0