Whole document tree
16.2 User-defined command hooksYou may define hooks, which are a special kind of user-defined command. Whenever you run the command `foo', if the user-defined command `hook-foo' exists, it is executed (with no arguments) before that command. In addition, a pseudo-command, `stop' exists. Defining (`hook-stop') makes the associated commands execute every time execution stops in your program: before breakpoint commands are run, displays are printed, or the stack frame is printed.
For example, to ignore
You can define a hook for any single-word command in GDB, but
not for command aliases; you should define a hook for the basic command
name, e.g.
If you try to define a hook which does not match any known command, you
get a warning from the This document was generated by root on January, 30 2002 using texi2html |