From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14531 invoked by alias); 11 Mar 2010 16:53:25 -0000 Received: (qmail 14522 invoked by uid 22791); 11 Mar 2010 16:53:24 -0000 X-SWARE-Spam-Status: No, hits=-7.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS 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; Thu, 11 Mar 2010 16:53:20 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2BGrEv6027691 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Mar 2010 11:53:15 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2BGrD7f011805; Thu, 11 Mar 2010 11:53:14 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o2BGrCbQ023201; Thu, 11 Mar 2010 11:53:13 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 22B1B37858F; Thu, 11 Mar 2010 09:53:12 -0700 (MST) From: Tom Tromey To: Chris Johns Cc: gdb@sourceware.org Subject: Re: Reading a static variable in Python References: <4B971421.8080006@contemporary.net.au> <4B984C19.80407@contemporary.net.au> Reply-To: Tom Tromey Date: Thu, 11 Mar 2010 16:53:00 -0000 In-Reply-To: <4B984C19.80407@contemporary.net.au> (Chris Johns's message of "Thu, 11 Mar 2010 12:49:13 +1100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00072.txt.bz2 >>>>> "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... Tom