Undefine python command

Tom Tromey tromey@redhat.com
Fri Apr 1 13:11:00 GMT 2011


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



More information about the Gdb mailing list