This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Debug Operators with GDB Python
- From: Tom Tromey <tromey at redhat dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches at sourceware dot org, Doug Evans <dje at google dot com>
- Date: Fri, 30 Nov 2012 14:39:17 -0700
- Subject: Re: [RFC] Debug Operators with GDB Python
- References: <CAGyQ6gx6pYxK91gvsL2zSa18Wk5eJPJw4wr0fU6AdH+TLuiPpw@mail.gmail.com>
>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:
One last thing I forgot -
Siva> +class EnableDebugOperators(gdb.Command):
Siva> + def __init__(self):
Siva> + super(EnableDebugOperators, self).__init__("enable debug-operators",
Siva> + gdb.COMMAND_SUPPORT)
Siva> +
Siva> + def invoke(self, arg, from_tty):
Siva> + gdb.operator.enable_debug_operators()
I'm not a fan of this. I think the feature should be enabled by default
and then individual operators (or groups, not sure) should be
disable-able by the user -- basically the way typedef- and value
pretty-printing work.
Tom