Message ID | 54242A52.8060200@ericsson.com |
---|---|
State | Committed |
Headers |
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: <gdb-patches.sourceware.org> List-Unsubscribe: <mailto:gdb-patches-unsubscribe-##L=##H@sourceware.org> List-Subscribe: <mailto:gdb-patches-subscribe@sourceware.org> List-Archive: <http://sourceware.org/ml/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-help@sourceware.org>, <http://sourceware.org/ml/#faqs> Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@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 10:44:34 -0400 From: Simon Marchi <simon.marchi@ericsson.com> 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 <sergiodj@redhat.com>, Doug Evans <dje@google.com> CC: gdb-patches <gdb-patches@sourceware.org> 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> <CADPb22StC=Lg8a=ZkxuVZ-a0g_-oa+BdOrvB=jj9=cEQYGhEgg@mail.gmail.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 |
Commit Message
Simon Marchi
Sept. 25, 2014, 2:44 p.m. UTC
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(-)
Comments
On Thu, Sep 25, 2014 at 8:44 AM, Simon Marchi <simon.marchi@ericsson.com> wrote: > 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. LGTM In the commit log I would add a note that this was removed so that the print routine didn't have (unwanted) side-effects. Thanks.
On 2014-09-25 03:13 PM, Doug Evans wrote: > On Thu, Sep 25, 2014 at 8:44 AM, Simon Marchi <simon.marchi@ericsson.com> wrote: >> 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. > > LGTM > > In the commit log I would add a note that this was removed so that the > print routine didn't have (unwanted) side-effects. > > Thanks. Pushed, thanks!
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) {