condition

This command sets a break condition for a specific breakpoint or watchpoint. If the value of a specific expression evaluates to true then the debugger stops the target otherwise execution resumes.

Show/hideSyntax

condition number [expression]

Where:

number

Specifies the breakpoint or watchpoint number. This is the number assigned by the debugger when it is set. You can use info breakpoints to display the number and status of all breakpoints and watchpoints.

expression

Specifies an expression that is evaluated when the breakpoint or watchpoint is hit. If no expression is specified then the breakpoint or watchpoint condition is deleted.

Show/hideExample

Example 17. condition

condition 1 myVar<5       # Set break condition myVar<5 for breakpoint number 1

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0452H
Non-ConfidentialID111711