From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24248 invoked by alias); 3 Sep 2009 00:59:39 -0000 Received: (qmail 24239 invoked by uid 22791); 3 Sep 2009 00:59:39 -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; Thu, 03 Sep 2009 00:59:33 +0000 Received: from totara (unknown [123.255.29.40]) by viper.snap.net.nz (Postfix) with ESMTP id 1A0763DA956; Thu, 3 Sep 2009 12:59:27 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id B1B5FC164; Thu, 3 Sep 2009 12:59:25 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19103.5356.263602.590270@totara.tehura.co.nz> Date: Thu, 03 Sep 2009 00:59:00 -0000 To: tromey@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] varobj.c: Report changed values that use a pretty-printer In-Reply-To: References: <19103.1108.215005.684662@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/msg00073.txt.bz2 > Nick> There have been a few problems, notably changed values don't seem > Nick> to get reported by -var-update. The patch below seems to fix > Nick> this. > > Oops, bad timing ... I have a big patch to redo all this code, as > discussed on the gdb list and the archer list. It is on the > archer-tromey-python branch, but I plan to push it to CVS as soon as > Volodya declares it ready (and as soon as I tidy up the documentation, > my task for tomorrow). No problem, it was only a small patch. Were you aware that changed values aren't reported? Does your patch fix the problems that I mentioned? > Nick> The scope of this work seems enormous as it opens the possiblity > Nick> of formatting the watch expressions of all STL containers (as, > Nick> ISTR, is already done in Totalview). Of course the amount of work > Nick> it entails is probably enormous too and the problem, as always, is > Nick> finding someone to do it. > > GCC svn trunk has pretty-printers for basically everything in libstdc++ :-) Cool! Will they be distributed as part of the libstdc++ package files? i.e. with future GNU/Linux distributions > I'd like to write printers for some other programs (gdb, or gcc, or > python, or emacs) but haven't found the time ... I'm not sure what you mean. I was thinking of writing lisp code so that Emacs can parse the output of the pretty printers like the ones you describe above. -- Nick http://www.inet.net.nz/~nickrob