|Non-Confidential||PDF version||ARM DUI0446Z|
|Home > Controlling Target Execution > Conditional watchpoints|
Conditional watchpoints have properties that are assigned to test for conditions that must be satisfied to trigger the watchpoint. When the conditional watchpoint is hit, the specified condition is checked and if it evaluates to true, the watchpoint is triggered, and the target stops.
For example, using conditional watchpoints you can:
See 3.4 Working with watchpoints for details about assigning a condition to watchpoint when creating it. See 3.11 Assigning conditions to an existing watchpoint for details about assigning conditions to an existing watchpoint.
If the instruction causing the trap occurred synchronously, then to evaluate a condition after any state has changed (for example, a store to an address), the debugger steps the instruction that caused the trap. The debugger then proceeds to evaluate the condition to see whether to stop on the watchpoint.This is required so that a specific address can be watched and trap immediately after a specific value is written to that address.