User-defined Commands

The debugger supports user-defined commands.

GDB Mode:

Use the following commands to define and control user-defined commands:

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:


  1. Enter define commandname.

  2. Enter each command line separately.

  3. Enter end.

Note iconNote

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:

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.