1.3.46 if

Enables you to write scripts that conditionally execute debugger commands.

Syntax

if condition
   ...
else
   ...
end

Where:

condition

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 condition evaluates 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
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.