The debugger supports user-defined commands.
GDB Mode:
Use the following commands to define and control user-defined commands:
codeblock>define
set max-user-call-depth
show max-user-call-depth
User-defined commands support if, while, loop_break, and loop_continue commands in their bodies. User-defined commands can have up to 10 arguments separated by whitespace. Argument names are $arg0, $arg1, $arg2, …, $arg9. The number of arguments is held in $argc.
To define a new command:
Enter define commandname.
Enter each command line separately.
Enter end.
The debugger does not support user-defined hooks or the following commands: document, help user-defined, and dont-repeat.
IDB Mode:
Use the alias command to define or display your own commands.
The definition can contain:
The name of another alias, if the nested alias is the first identifier in the definition.
A quoted string, specified with backslashes before the quotation marks. Two quotation marks cannot be together; they must be separated by a space or at least one character.
Copyright © 2001-2011, Intel Corporation. All rights reserved.