This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to get convenience variables in python?
- From: S Boucher <stbya at yahoo dot com>
- To: gdb at sourceware dot org
- Date: Fri, 22 Jan 2010 08:25:11 -0800 (PST)
- Subject: How to get convenience variables in python?
I'd like to get to convenience variables without first having to print them.
But currently, I have to do:
gdb.execute("print argc")
argc = gdb.history(0)
With the annoying side effect that argc gets printed.
It would be useful is to be able to do:
gdb.execute("set $argc = argc")
argc = gdb.convenience("$argc")
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca