From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8339 invoked by alias); 22 Jun 2012 09:21:14 -0000 Received: (qmail 8317 invoked by uid 22791); 22 Jun 2012 09:21:12 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-qa0-f51.google.com (HELO mail-qa0-f51.google.com) (209.85.216.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 09:20:50 +0000 Received: by qaea16 with SMTP id a16so316122qae.3 for ; Fri, 22 Jun 2012 02:20:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=WpJCZTzwVsxRoNKRcz0KA8zkozRaRtqIHR2xvPBl2M0=; b=PR9ZSoc9b7EHxCPumZZhGUwJPLHRSDxuZppD4pun/9mcfTyR0ixlti79QbElLTcU3q 6eawz0XK7G+MRVxE5FY7dyTqm3Npvy4MgtwhHNUlpm49kk8arwvtcEvZq3SEgOrBgjbd dFLzaVC2hf7CordvZ84dBTHxWUmVhjM4v8vUwrmDQPaPHJ1uzx0veSN7yCX/zy7QGJiE a4aU4UxYlDK52DKGs+SU1E/YpHSsNeXOIX3SRbmDgesZoddGz6mh81tglBbOvFCNPADr Y3kZ4RbQSGS11PUQnuzCAHwX2m0jOAWjbvt004qF8SOAbZMCf+4+nbTpndyWc611F4Fc Mh+w== Received: by 10.224.176.70 with SMTP id bd6mr5018334qab.27.1340356849786; Fri, 22 Jun 2012 02:20:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.176.70 with SMTP id bd6mr5018309qab.27.1340356849493; Fri, 22 Jun 2012 02:20:49 -0700 (PDT) Received: by 10.224.126.67 with HTTP; Fri, 22 Jun 2012 02:20:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 22 Jun 2012 09:21:00 -0000 Message-ID: Subject: Re: [RFC - Python Scripting] Add 'end' attribute to gdb.Symtab_and_line From: Siva Chandra To: Doug Evans Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQkywjxTmszqCU9IPeHeyUA5JxiLEyKwgz9kk1DKHEnH0kAGXDtFydeBddtG4Kupkcp/Hr45swkguCwumgv/LjsvQ+rTOuchcbPthZJtrZF7cPS7PAhtWn4fV+HN+JDMu5eYviEgcLicvf1D5gTKkYcGvlV84HatsON9Hmqc4sLQZDX1Kc0gV2RGlQD9+pcDaP4X2QnC X-IsSubscribed: yes 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: 2012-06/txt/msg00684.txt.bz2 On Wed, Jun 13, 2012 at 11:45 PM, Siva Chandra wro= te: > On Wed, Jun 13, 2012 at 10:38 PM, Doug Evans wrote: >> I like "last". >> So the range would be [pc,last] =A0? > > Yes. The only reason I do not want to call it 'end' is to avoid > confusion with the internal 'end' which has a different behavior. > > 2012-06-13 =A0Siva Chandra Reddy =A0 > > =A0 =A0 =A0 =A0New attribute 'last' for gdb.Symtab_and_line. > =A0 =A0 =A0 =A0* NEWS (Python Scripting): Add entry about the new attribu= te. > =A0 =A0 =A0 =A0* python/py-symtab.c (salpy_get_last): New function which > =A0 =A0 =A0 =A0implements the get method for the 'last' attribute of > =A0 =A0 =A0 =A0gdb.Symtab_and_line. > =A0 =A0 =A0 =A0(sal_object_getset): Add entry for the 'last' attribute. > > =A0 =A0 =A0 =A0doc/ > =A0 =A0 =A0 =A0* gdb.texinfo (Symbol Tables In Python): Add description a= bout > =A0 =A0 =A0 =A0the new 'last' attribute of gdb.Symtab_and line. > > =A0 =A0 =A0 =A0testsuite/ > =A0 =A0 =A0 =A0* gdb.python/py-symtab.exp: Add tests to test the new attr= ibute > =A0 =A0 =A0 =A0'last' of gdb.Symtab_and_line. > =A0 =A0 =A0 =A0* gdb.python/py-symbol.c: Move break point comment to enab= le > =A0 =A0 =A0 =A0testing of gdb.Symtab_and_line.last. Ping. Is this good to go in?