This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: inferior calls from python?
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Project Archer <archer at sourceware dot org>
- Date: Sun, 28 Jun 2009 20:22:33 -0700
- Subject: Re: inferior calls from python?
- References: <20090629004733.B4729420F6@magilla.sf.frob.com>
On Sun, Jun 28, 2009 at 5:47 PM, Roland McGrath<roland@redhat.com> wrote:
> Am I missing an existing way this can be done?
I've used parse_and_eval with an earlier archer version like this:
def to_string(self):
return 'T1 id ' + str(parse_and_eval('TypeOfT1::id(%s)' %
str(self.val.address())))
I think this will still work with current GDB versions.
--
Paul Pluzhnikov