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: Undefine python command


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


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