From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11570 invoked by alias); 12 Jun 2013 15:23:23 -0000 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 Received: (qmail 11532 invoked by uid 89); 12 Jun 2013 15:23:23 -0000 X-Spam-SWARE-Status: No, score=-6.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=unavailable version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 12 Jun 2013 15:23:22 +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.14.4/8.14.4) with ESMTP id r5CFNItr007741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Jun 2013 11:23:19 -0400 Received: from [10.16.189.4] (dhcp-189-4.bos.redhat.com [10.16.189.4]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5CFNIcu023633; Wed, 12 Jun 2013 11:23:18 -0400 Message-ID: <1371050603.3393.17.camel@surprise> Subject: Re: gdb pretty printers and python3.x From: David Malcolm To: Matthias Klose Cc: gdb@sourceware.org, "libstdc++@gcc.gnu.org" Date: Wed, 12 Jun 2013 15:23:00 -0000 In-Reply-To: <51B8394A.9040407@ubuntu.com> References: <51B8394A.9040407@ubuntu.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00040.txt.bz2 On Wed, 2013-06-12 at 11:03 +0200, Matthias Klose wrote: > Starting with gdb-7.6, gdb supports embedding a Python3 interpreter instead of > Python2. However most pretty printers are still using Python2 code, and when > shipping a gdb using Python3, you have to fix all pretty printers at once (and > keep building it with Python2, nobody will port to Python3). So some questions: > > - Is there a list of known pretty printers? So far I know about > libstdc++, python, gtk, libreoffice. Cython has some too IIRC Also, it's not just pretty-printers: gdb-heap [1] adds commands to gdb for dealing with glibc's (and CPython's) handling of the heap. [...] Hope this is helpful Dave [1] https://fedorahosted.org/gdb-heap/ (my pet project)