This is the mail archive of the
mailing list for the GDB project.
Re: [RFC] stept, nextt, finisht, untilt, continuet
- From: Tom Tromey <tromey at redhat dot com>
- To: dje at google dot com (Doug Evans)
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 30 Aug 2011 11:00:02 -0600
- Subject: Re: [RFC] stept, nextt, finisht, untilt, continuet
- References: <email@example.com>
>>>>> "Doug" == Doug Evans <firstname.lastname@example.org> writes:
Doug> Sometimes I want to run with scheduler-locking on, but having to
Doug> turn it on, perform the command, and remember to turn it off
Doug> afterwards is annoying.
Doug> Another way to go would be to add a "-t" option to these commands.
I was experimenting with generic prefix commands, e.g. "verbose". I
think of them as adverbs. This is just food for thought, I am ok with
any of these approaches.
def __init__(self, name):
gdb.Command.__init__(self, name, gdb.COMMAND_SUPPORT)
def invoke(self, arg, from_tty):
save = 'on'
save = 'off'
gdb.execute('set verbose on', to_string = True)
gdb.execute('set verbose ' + save, to_string = True)