From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22343 invoked by alias); 11 Mar 2010 23:40:47 -0000 Received: (qmail 22329 invoked by uid 22791); 11 Mar 2010 23:40:46 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from outbound.icp-qv1-irony-out4.iinet.net.au (HELO outbound.icp-qv1-irony-out4.iinet.net.au) (203.59.1.104) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Mar 2010 23:40:40 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAJcOmUvLzoJq/2dsb2JhbACaZHO8UIR7BA Received: from unknown (HELO corb.contemporary.net.au) ([203.206.130.106]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 12 Mar 2010 07:40:35 +0800 Received: from [10.10.10.192] (utzon.contemporary.net.au [10.10.10.192]) by corb.contemporary.net.au (8.13.8/8.13.8) with ESMTP id o2BNeYHe012206; Fri, 12 Mar 2010 10:40:35 +1100 Message-ID: <4B997F6D.7050009@contemporary.net.au> Date: Thu, 11 Mar 2010 23:40:00 -0000 From: Chris Johns User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: Tom Tromey CC: gdb@sourceware.org Subject: Re: Reading a static variable in Python References: <4B971421.8080006@contemporary.net.au> <4B984C19.80407@contemporary.net.au> In-Reply-To: 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: 2010-03/txt/msg00079.txt.bz2 On 3/12/2010 3:53 AM, Tom Tromey wrote: >>>>>> "Chris" == Chris Johns writes: > > Tom> Use gdb.parse_and_eval. > > Chris> Nice. This is an excellent solution. I suppose being an expression it > Chris> can do the pointer maths as well. I was looking at ways to construct a > Chris> gdb.Value with a gdb.Symbol as an argument. > > Yes, strangely there doesn't seem to be a way to do that. > If you want this, feel free to file a bug report for it... > I am happy with the gdb.parse_and_eval solution. If a need arises I will create a bug report. Thanks Chris