This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

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


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