This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How to get convenience variables in python?
- From: Tom Tromey <tromey at redhat dot com>
- To: S Boucher <stbya at yahoo dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 22 Jan 2010 09:46:03 -0700
- Subject: Re: How to get convenience variables in python?
- References: <557747.52347.qm@web56807.mail.re3.yahoo.com>
- Reply-to: tromey at redhat dot com
>>>>> "S" == S Boucher <stbya@yahoo.com> writes:
S> gdb.execute("set $argc = argc")
S> argc = gdb.convenience("$argc")
With CVS gdb you can do
argc = gdb.parse_and_eval ('argc')
Tom