From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3197 invoked by alias); 16 Sep 2010 09:30:31 -0000 Received: (qmail 3188 invoked by uid 22791); 16 Sep 2010 09:30:31 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from atlantis.wh2.tu-dresden.de (HELO atlantis.wh2.tu-dresden.de) (141.30.228.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Sep 2010 09:30:24 +0000 Received: from [141.30.223.201] (x0862b.wh5.tu-dresden.de [141.30.223.201]) by atlantis.wh2.tu-dresden.de (Postfix) with ESMTPSA id C84396AC05; Thu, 16 Sep 2010 11:21:17 +0200 (CEST) Message-ID: <4C91E3AE.6070500@wh2.tu-dresden.de> Date: Thu, 16 Sep 2010 09:30:00 -0000 From: Joachim Protze User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Joel_Borggr=E9n-Franck?= CC: gdb@sourceware.org Subject: Re: Python API questions and use cases References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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-09/txt/msg00092.txt.bz2 Am 16.09.2010 09:32, schrieb Joel Borggrén-Franck: > On Wed, Sep 15, 2010 at 7:56 PM, Tom Tromey wrote: >> I think the tricky part is getting a Value holding the appropriate >> constant. For that you might not have anything better, at present, than >> parse_and_eval. > > True. Then I think this would be useful: > > gdb.new_address(addr) - returns a new gdb.Value (of type (void *)) pointing > to addr. addr is checked to be within bounds of the address space of the > inferior upon creation. > Where do you get this address from? I cannot imagine a case where you get a valid address from others than from inferior. So you have the address as gdb.Value already. Joachim