From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29611 invoked by alias); 7 Jan 2010 08:55:55 -0000 Received: (qmail 29601 invoked by uid 22791); 7 Jan 2010 08:55:54 -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 plmler5.mail.eds.com (HELO plmler5.mail.eds.com) (199.228.142.80) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 07 Jan 2010 08:55:29 +0000 Received: from plmlir4.mail.eds.com (plmlir4-2.mail.eds.com [199.228.142.134]) by plmler5.mail.eds.com (8.14.2/8.13.8) with ESMTP id o078tBTf001131; Thu, 7 Jan 2010 02:55:11 -0600 Received: from plmlir4.mail.eds.com (localhost [127.0.0.1]) by plmlir4.mail.eds.com (8.14.2/8.12.10) with ESMTP id o078t72D031172; Thu, 7 Jan 2010 02:55:07 -0600 Received: from usplmvpfe001.ent.rt.verigy.net ([192.100.40.4]) by plmlir4.mail.eds.com (8.14.2/8.12.10) with ESMTP id o078t7Sa031161; Thu, 7 Jan 2010 02:55:07 -0600 X-EDSINT-Source-Ip: 192.100.40.4 Received: from usplmvpbe001.ent.rt.verigy.net ([10.16.58.34]) by usplmvpfe001.ent.rt.verigy.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 02:55:07 -0600 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Python pretty printers and dynamic cast Date: Thu, 07 Jan 2010 08:55:00 -0000 Message-ID: <58596C4646708B4BB990C4483997333001868889@usplmvpbe001.ent.rt.verigy.net> In-Reply-To: From: "Elmenthaler, Jens" To: "Tom Tromey" Cc: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00049.txt.bz2 Jens> Prio 3: provide the C++ style casts in the Python API to make Jens> pretty printers like the one described above clean. Tom> Could you file a feature request for this in bugzilla? Done: Bug 11145 Jens. -----Original Message----- From: Tom Tromey [mailto:tromey@redhat.com]=20 Sent: Dienstag, 5. Januar 2010 16:34 To: Elmenthaler, Jens Cc: gdb@sourceware.org Subject: Re: Python pretty printers and dynamic cast >>>>> "Jens" =3D=3D Elmenthaler, Jens writes: Tom> There is nothing built-in yet. We've had a few requests for this, Tom> though, and there was a patch posted to the archer list. If you give = it Tom> a try, let us know how it turns out. [...] Jens> So, my vote as a user looks something like this: Jens> Prio 1: commit this patch for the rtti_type method (I applied it Jens> to the current gdb 7.0 sources and was happy with it). ] I'm hoping we'll merge a bunch of python stuff "soon". I'll make sure this is on our list. Jens> Prio 2: also add the C++ style casts to improve gdb command line Jens> experience for C++. FWIW we have a patch to add these casts on the expr-cumulative branch. I will look into merging that. Jens> Prio 3: provide the C++ style casts in the Python API to make Jens> pretty printers like the one described above clean. Could you file a feature request for this in bugzilla? Tom