How to get convenience variables in python?

S Boucher stbya@yahoo.com
Fri Jan 22 16:25:00 GMT 2010


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



More information about the Gdb mailing list