1.3.226 while

Enables you to write scripts with conditional loops that execute debugger commands.

Syntax

while condition
    ...
    optional_commands
    ...
end

Where:

condition

Specifies a conditional expression. Follow the while statement with one or more debugger commands that execute repeatedly while condition evaluates to true.

optional_commands

Specifies optional commands that can also be used inside the while statement to change the loop behavior:

loop_break

Exit the loop.

loop_continue

Skip the remaining commands and return to the start of the loop.

Enter each debugger command on a new line and terminate the while command by using the end command.

Example 1-229 Examples

# Define a while loop containing commands to conditionally execute 
# myVar is a variable in the application code
while myVar<10
    step
    wait
    x
    set myVar++
end
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.