This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: inferior calls from python?


> 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())))

Ah, thanks!  That is an excellent terrible idea.
(I somehow overlooked gdb.Value.address.)


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]