| are executed repeatedly as long as the expression |
| evaluates to true. |
document commandname | Document the |
| so that it can be accessed by help. The command |
| commandname must already be defined. This |
| command reads lines of documentation just as define |
| reads the lines of the command definition, ending |
| with end. After the document command is finished, |
| help on command commandname displays the |
| documentation you have written. |
| You may use the document command again to change |
| the documentation of a command. Redefining the |
| command with define does not change the |
| documentation. |
help | List all |
| the documentation (if any) for each. |
show user, show user | Display the GDB commands used to define |
commandname | commandname (but not its documentation). If no |
| commandname is given, display the definitions for |
| all user- defined commands. |
When
If used interactively, commands that would ask for confirmation proceed without asking when used inside a
18.2 User-defined command hooks
You may define hooks, which are a special kind of
In addition, a
For example, to ignore SIGALRM signals while
define
define
288 Canned Sequences of Commands