From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31443 invoked by alias); 2 Jun 2010 22:41:04 -0000 Received: (qmail 31433 invoked by uid 22791); 2 Jun 2010 22:41:03 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,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; Wed, 02 Jun 2010 22:40:58 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o52MepOq002452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 2 Jun 2010 18:40:52 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o52Meotr030442; Wed, 2 Jun 2010 18:40:51 -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 o52MengT017259; Wed, 2 Jun 2010 18:40:50 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id AAA7C3782DC; Wed, 2 Jun 2010 16:40:49 -0600 (MDT) From: Tom Tromey To: dje@google.com (Doug Evans) Cc: gdb-patches@sourceware.org Subject: Re: [RFA] add support for disabling individual pretty-printers References: <20100520071212.E4A8484398@ruffy.mtv.corp.google.com> Reply-To: tromey@redhat.com Date: Wed, 02 Jun 2010 22:41:00 -0000 In-Reply-To: <20100520071212.E4A8484398@ruffy.mtv.corp.google.com> (Doug Evans's message of "Thu, 20 May 2010 00:12:12 -0700 (PDT)") 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: 2010-06/txt/msg00084.txt.bz2 >>>>> "Doug" == Doug Evans writes: Doug> As discussed in irc, I'd like to add support for disabling Doug> individual pretty-printers. Broken printers do get installed Doug> and/or the underlying data structures do change with developers Doug> not always updating the pretty-printer. When this happens Doug> the consequences to a user's debugging session can be severe enough Doug> that IMO we need to do *something*. I was thinking that we could perhaps automatically disable any printer that ever throws an exception. That is pretty drastic though. Doug> The approach below uses the presence of an "enabled" attribute Doug> on the lookup function (or callable object!) to control the Doug> enabling/disabling. Doug> Ok to check in? Yes, thanks. Tom