From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24850 invoked by alias); 12 Jun 2013 09:03:16 -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 24820 invoked by uid 89); 12 Jun 2013 09:03:13 -0000 X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from youngberry.canonical.com (HELO youngberry.canonical.com) (91.189.89.112) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 12 Jun 2013 09:03:12 +0000 Received: from dslb-088-073-071-126.pools.arcor-ip.net ([88.73.71.126] helo=[192.168.42.222]) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1UmgxR-0007TS-Na; Wed, 12 Jun 2013 09:03:09 +0000 Message-ID: <51B8394A.9040407@ubuntu.com> Date: Wed, 12 Jun 2013 09:03:00 -0000 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: gdb@sourceware.org CC: "libstdc++@gcc.gnu.org" , David Malcolm Subject: gdb pretty printers and python3.x Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00036.txt.bz2 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. - Is there a minimal python version supported by gdb? If e.g. it is 2.6, then probably most pretty printers could be converted to code which can be used by both 2.x and 3.x. If not, then it would be up to 2to3 runs to do the conversion when needed. - Has somebody already done such a 3.x based build, and maybe already has converted some of the pretty printers? Thanks, Matthias