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]

Re: How to get convenience variables in python?


>>>>> "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


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