From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10337 invoked by alias); 9 Apr 2009 00:29:44 -0000 Received: (qmail 10327 invoked by uid 22791); 9 Apr 2009 00:29:43 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Apr 2009 00:29:37 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n390TYuK013305; Wed, 8 Apr 2009 20:29:34 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n390TZJe029661; Wed, 8 Apr 2009 20:29:35 -0400 Received: from opsy.redhat.com (vpn-13-1.rdu.redhat.com [10.11.13.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n390TXMH019547; Wed, 8 Apr 2009 20:29:34 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id CA4053781B3; Wed, 8 Apr 2009 18:29:31 -0600 (MDT) To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: Python pretty-printing [5/6] References: From: Tom Tromey Reply-To: Tom Tromey Date: Thu, 09 Apr 2009 00:29:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Fri\, 03 Apr 2009 18\:26\:54 +0300") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (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-04/txt/msg00166.txt.bz2 >>>>> "Eli" == Eli Zaretskii writes: Tom> It adds a new "/r" ("raw") option to the print command family. Eli> But this change in behavior is not documented in the docs patch, Eli> right? Thanks, I forgot to merge that hunk. It will show up in the next revision of this patch. Tom> +A pretty-printer is an object that implements a specific interface. Tom> +There is no predefined base class for pretty-printers. Eli> Is it possible to expand this a bit? I added a real-world example here. Tom> Then @value{GDBN} prints this value; this may possibly Tom> +result in a call to another pretty-printer. If the result is not Tom> +convertible to @code{gdb.Value}, an exception is raised. Eli> Should we say what exception is raised? For the time being I would rather not. I think we will probably introduce our own exception types at some point, so I'd rather not make a promise here. Tom