From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17179 invoked by alias); 30 May 2012 23:12:03 -0000 Received: (qmail 17170 invoked by uid 22791); 30 May 2012 23:12:03 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_RG,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, 30 May 2012 23:11:47 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4UNBdti005161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 30 May 2012 19:11:40 -0400 Received: from valrhona.uglyboxes.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q4UNBb0w020794 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 May 2012 19:11:39 -0400 Message-ID: <4FC6A929.5080209@redhat.com> Date: Wed, 30 May 2012 23:12:00 -0000 From: Keith Seitz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Evan Driscoll CC: gdb@sourceware.org Subject: Re: Pythons scripting API question References: <4FC66293.5040908@cs.wisc.edu> <4FC68FD0.4060809@redhat.com> <4FC6A251.3080806@cs.wisc.edu> In-Reply-To: <4FC6A251.3080806@cs.wisc.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2012-05/txt/msg00148.txt.bz2 On 05/30/2012 03:42 PM, Evan Driscoll wrote: > Instead, I have to use > > (gdb) python print gdb.selected_frame().read_var(n) > {argc = 6742752, argv = 0x0, use_windows = -7696, interpreter_p = 0x0} > > > Is this just a version difference? It appears that Symbol.value was added on 2012-02-07 to address python/12027. That bug shows the target milestone to be 7.5, so I'm guessing that although this was fixed before the 7.4.1 release, it was not back-ported to that release. In other words, yes, it does appear to be a difference between your version of gdb (7.4.1) and mine (7.4.50, aka CVS HEAD). :-) Keith