This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Undefine python command
- From: Tom Tromey <tromey at redhat dot com>
- To: Michel METZGER <michel dot metzger at st dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Fri, 01 Apr 2011 07:11:14 -0600
- Subject: Re: Undefine python command
- References: <5B4CE209869C6A4797F5FAA0B348F0A0D9F183F45F@SAFEX1MAIL1.st.com>
Michel> Is there a way to remove a commands defined in Python?
No.
Michel> I need to define specific commands depending on the type of
Michel> binary being debugged. It's not a problem for the first binary
Michel> loaded, but if the user loads a new binary with 'file', I will
Michel> need to remove some commands.
You could make the commands error if they are invoked improperly.
Tom