From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24079 invoked by alias); 27 Jan 2011 19:13:47 -0000 Received: (qmail 24062 invoked by uid 22791); 27 Jan 2011 19:13:47 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BJ,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Jan 2011 19:13:40 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0RJDcnm001126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Jan 2011 14:13:39 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0RJDcXu031436; Thu, 27 Jan 2011 14:13:38 -0500 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 p0RJDbUl030627; Thu, 27 Jan 2011 14:13:37 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 345E737887A; Thu, 27 Jan 2011 12:13:37 -0700 (MST) From: Tom Tromey To: Benjamin Kosnik Cc: libstdc , gcc-patches@gcc.gnu.org Subject: Re: FYI: update libstdc++ pretty-printers References: <20110127093230.03e3b5bd@shotwell> Date: Thu, 27 Jan 2011 20:10:00 -0000 In-Reply-To: <20110127093230.03e3b5bd@shotwell> (Benjamin Kosnik's message of "Thu, 27 Jan 2011 09:32:30 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg02052.txt.bz2 Tom> Doug Evans recently added some features to gdb to make it possible for Tom> the user to individually enable or disable pretty-printers. In order Tom> for this to work, the printers must conform to a certain extended Tom> protocol. Benjamin> By this do you mean type-specific enable/disable? Ie, enable Benjamin> std::string prettyprinter, and have std::list disabled? Yeah. Benjamin> If so, way cool, can you give example syntax that does it? Sure. You need to know the name of the printers; but with the new code, each printer is just named after the class it prints. You can see all of them with "info pretty-printers". Then you can do something like: (gdb) disable pretty-printer .* .*:std::list 1 printer disabled 55 of 56 printers enabled The syntax is a little funny, since you supply regular expressions to match against the objfile (executable or shared library) name, the printer's "category" (I'm not sure if there is an official name for this, but in this case it is "libstdc++-v6"), and the printer itself. Tom