From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5481 invoked by alias); 29 Jun 2009 11:49:38 -0000 Received: (qmail 5466 invoked by uid 22791); 29 Jun 2009 11:49:37 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,BOTNET,SPF_PASS X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 11:49:25 +0000 Received: from totara (198.30.255.123.dynamic.snap.net.nz [123.255.30.198]) by viper.snap.net.nz (Postfix) with ESMTP id C39723DA01B; Mon, 29 Jun 2009 23:49:23 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 84C6AC13F; Mon, 29 Jun 2009 23:49:21 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19016.43585.442474.558778@totara.tehura.co.nz> Date: Mon, 29 Jun 2009 11:49:00 -0000 To: Niko Sams Cc: gdb Subject: Re: -stack-list-locals and children In-Reply-To: <629542d40906290230n4da6f347s1566847defb9a1c0@mail.gmail.com> References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> <629542d40906290012p33c5504pde20ddcd7da3474a@mail.gmail.com> <200906291217.58961.vladimir@codesourcery.com> <629542d40906290230n4da6f347s1566847defb9a1c0@mail.gmail.com> From: nickrob@snap.net.nz (Nick Roberts) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00297.txt.bz2 > > Also, is -stack-list-locals any better here? I'd expect it to either have > > exactly the same performance problems, or ignore pretty-printing. If it > > is considerably faster while still reporting 1000 children, it's performance > > bug somewhere. > It's much faster. I get about 100 children in the value followed by .... I think the limit is 200 (show print elements) but if elements repeat themselves (generally 0) an ellipsis is used. Presumably it's much faster because -stack-list-locals just prints/dumps out the values while variable objects allow you to edit, change format, expand, list changed values etc... -- Nick http://www.inet.net.nz/~nickrob