From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26516 invoked by alias); 28 Jul 2010 09:47:34 -0000 Received: (qmail 26506 invoked by uid 22791); 28 Jul 2010 09:47:33 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jul 2010 09:47:28 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6S9lQua005907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 28 Jul 2010 05:47:26 -0400 Received: from Phil-THINK.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6S9lOCx009064; Wed, 28 Jul 2010 05:47:24 -0400 Message-ID: <4C4FFCAB.4040909@redhat.com> Date: Wed, 28 Jul 2010 09:47:00 -0000 From: Phil Muldoon User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Thunderbird/3.1.1 MIME-Version: 1.0 To: Tom Tromey CC: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [patch] Allow gdb.Values to become callable if appropriate. References: <4C442BAA.2020300@redhat.com> <4C4D5296.3040108@redhat.com> <838w4yb2bx.fsf@gnu.org> <4C4EDC0E.6020603@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2010-07/txt/msg00471.txt.bz2 On 27/07/10 19:24, Tom Tromey wrote: > Phil> So committed > Phil> http://sourceware.org/ml/gdb-cvs/2010-07/msg00156.html > > Could you please make a NEWS patch that mentions the new Python > improvements on the trunk? Thanks. Here is a patch. What do you think? Cheers, Phil ChangeLog 2010-07-28 Phil Muldoon * NEWS: Document Python value inferior function calls. -- diff --git a/gdb/NEWS b/gdb/NEWS index 0aea3fb..73f79a5 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,15 @@ *** Changes since GDB 7.2 +* Python scripting + + ** GDB values in Python are now callable if the value represents a + function. For example, if 'some_value' represents a function that + takes two integer parameters and returns a value, you can call + that function like so: + + result = some_value (10,20) + * GDB now has some support for using labels in the program's source in linespecs. For instance, you can use "advance label" to continue execution to a label.