Enables you to write scripts that conditionally execute debugger commands.
Specifies a conditional expression. Follow the if statement with one or more debugger commands that execute when the expression evaluates to true.Note
The else statement is optional and the debugger commands that follow it only execute when
conditionevaluates to false.
Enter each debugger command on a new line and terminate the if command by using the end command.
Example 1-49 Examples
# Define an if statement containing commands to conditionally execute if $pc==0x80000 break info stack full end