This is the mail archive of the gdb@sources.redhat.com 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: Redefining built-in commands.


>>>>> "Don" == Don Howard <dhoward@redhat.com> writes:

Don> (gdb) define step
Don> do something special
Don> step
Don> end
Don> (gdb)

Don> The above example ends up "doing something special" until gdb hits it's
Don> recursion limit, rather than doing something special and then stepping.  
Don> The example *does* work just fine if the user picks anything other than a
Don> built-in name:

Bash solves this problem by adding a `command' command, which invokes
the original command.  So in the above you could use `command step' to
invoke the real step.  Perhaps this would be useful in gdb.

Tom


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