From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24012 invoked by alias); 3 Sep 2009 01:35:15 -0000 Received: (qmail 24001 invoked by uid 22791); 3 Sep 2009 01:35:14 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1-old.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Sep 2009 01:35:08 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com ([10.11.47.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n831Z53h030875 for ; Wed, 2 Sep 2009 21:35:05 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n831Z4qI009319; Wed, 2 Sep 2009 21:35:04 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n831Z3Ta032120; Wed, 2 Sep 2009 21:35:03 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id E410F378242; Wed, 2 Sep 2009 19:35:02 -0600 (MDT) From: Tom Tromey To: nickrob@snap.net.nz (Nick Roberts) Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] varobj.c: Report changed values that use a pretty-printer References: <19103.1108.215005.684662@totara.tehura.co.nz> <19103.5356.263602.590270@totara.tehura.co.nz> Reply-To: Tom Tromey Date: Thu, 03 Sep 2009 01:35:00 -0000 In-Reply-To: <19103.5356.263602.590270@totara.tehura.co.nz> (Nick Roberts's message of "Thu, 3 Sep 2009 12:59:24 +1200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00074.txt.bz2 >>>>> "Nick" == Nick Roberts writes: Nick> No problem, it was only a small patch. Were you aware that Nick> changed values aren't reported? Does your patch fix the problems Nick> that I mentioned? Yeah, it should fix those problems. Tom> GCC svn trunk has pretty-printers for basically everything in Tom> libstdc++ :-) Nick> Cool! Will they be distributed as part of the libstdc++ package Nick> files? i.e. with future GNU/Linux distributions Yes, they are installed in a way that lets them auto-activate, if the distro configures everything properly. We're already doing this in Fedora 11. Tom> I'd like to write printers for some other programs (gdb, or gcc, or Tom> python, or emacs) but haven't found the time ... Nick> I'm not sure what you mean. I was thinking of writing lisp code Nick> so that Emacs can parse the output of the pretty printers like the Nick> ones you describe above. At least gcc, emacs, and python all have their own complicated .gdbinit files with commands to help print data structures more nicely. I think it would be nice to convert these to use the pretty-printer infrastructure. This provides a couple concrete advantages: it works better with MI, and it works in stack traces. Tom