From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23773 invoked by alias); 12 Sep 2013 07:36:52 -0000 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 Received: (qmail 23764 invoked by uid 89); 12 Sep 2013 07:36:51 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Sep 2013 07:36:51 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r8C7anlr009388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 12 Sep 2013 03:36:50 -0400 Received: from host2.jankratochvil.net (ovpn-116-51.ams2.redhat.com [10.36.116.51]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r8C7akHt012136 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 12 Sep 2013 03:36:48 -0400 Date: Thu, 12 Sep 2013 07:36:00 -0000 From: Jan Kratochvil To: Phil Muldoon Cc: Tom Tromey , "gdb-patches@sourceware.org" Subject: python-2.4 compat. [Re: [patch][python] 1 of 5 - Frame filter Python C code changes.] Message-ID: <20130912073646.GB13948@host2.jankratochvil.net> References: <5187686B.5010809@redhat.com> <87txmfx2qd.fsf@fleche.redhat.com> <518BA33B.9030405@redhat.com> <87bo8kqj6c.fsf@fleche.redhat.com> <518CCF0C.6060704@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <518CCF0C.6060704@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00373.txt.bz2 On Fri, 10 May 2013 12:42:20 +0200, Phil Muldoon wrote: [...] > --- /dev/null > +++ b/gdb/python/lib/gdb/command/frame_filters.py > @@ -0,0 +1,461 @@ [...] > + for frame_filter in sorted_frame_filters: > + name = frame_filter[0] > + try: > + priority = '{:<8}'.format( > + str(gdb.frames.get_priority(frame_filter[1]))) > + enabled = '{:<7}'.format( > + self.enabled_string(gdb.frames.get_enabled(frame_filter[1]))) > + except Exception as e: > + print(" Error printing filter '"+name+"': "+str(e)) > + else: > + print(" %s %s %s" % (priority, enabled, name)) (plus it is there once again later) CentOS-5 python-2.4.3-56.el5.x86_64: ./gdb -nx -data-directory ./data-directoryTraceback (most recent call last): File ".../gdb/testsuite/../data-directory/python/gdb/__init__.py", line 105, in auto_load_packages __import__(modname) File "./data-directory/python/gdb/command/frame_filters.py", line 82 except Exception as e: ^ SyntaxError: invalid syntax GNU gdb (GDB) 7.6.50.20130912-cvs IIRC it was agreed upon upstream FSF GDB should support python-2.4, could you code it in a compatible way? Thanks, Jan