From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5839 invoked by alias); 11 Sep 2009 23:55:47 -0000 Received: (qmail 5831 invoked by uid 22791); 11 Sep 2009 23:55:46 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,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; Fri, 11 Sep 2009 23:55:40 +0000 Received: from totara (200.61.255.123.dynamic.snap.net.nz [123.255.61.200]) by viper.snap.net.nz (Postfix) with ESMTP id 928173DB840; Sat, 12 Sep 2009 11:55:37 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 9CC75C164; Sat, 12 Sep 2009 11:55:32 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19114.58228.563201.654364@totara.tehura.co.nz> Date: Fri, 11 Sep 2009 23:55:00 -0000 To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: Patch: implement new dynamic varobj spec In-Reply-To: References: <19113.58116.381538.294631@totara.tehura.co.nz> From: nickrob@snap.net.nz (Nick Roberts) X-IsSubscribed: yes 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 X-SW-Source: 2009-09/txt/msg00349.txt.bz2 > Nick> 1) Children are reported (and presumably created) in var-update > Nick> even though only a root variable object may have been created, > Nick> i.e., not -var-list-children has been invoked. > > It should only report children if you previously requested them. You're probably right, I can't reproduce this now. I've been testing on archer-tromey-python branch at git://sourceware.org/git/archer.git as I've presumed that's where the patch posted here came from. Incidentally git is a great improvement: I noticed that variable objects are now staying in scope when the executable restarted and couldn't see why. I used 'git bisect' starting with 2000 revisions to find that it was due to Jan Kratochvil's patch disabling randomisation. I don't think I could have done that with gdb in CVS. I don't know how up to date the git mirror stays but it would be grat if we could move to it at some point. There appear to be lots of other benefits. >... > Nick> Existing documentation uses @var for field names, while new uses @samp. > > Yeah. @var seems clearly wrong there. > I will change the new code though. Really? I thought @samp was wrong. Eli will know. I would really like to use these improvements in Emacs but the release isn't far away. So I would request that -enable-pretty-printing is marked as an EXPERIMENTAL feature in the manual. That way changes can be made without anyone complaining. Maybe by 7.1 early next year there will be frontends that have worked out how to use it and that marking could be removed. -- Nick http://www.inet.net.nz/~nickrob