3.11 Assigning conditions to an existing watchpoint

Using the options available on the Watchpoint Properties dialog, you can specify different conditions for a specific watchpoint.

To specify the condition which must evaluate to true at the time the watchpoint is triggered for the target to stop, use the Stop Condition field.

Note:

You can create several conditional watchpoints, but when a conditional watchpoint is enabled, no other watchpoints (regardless of whether they are conditional) can be enabled.

Procedure

  1. In the Breakpoints view, select the watchpoint that you want to modify and right-click to display the context menu.
  2. Select Properties... to display the Watchpoint Properties dialog.
  3. If not selected, select Enabled.
  4. Specify the width to watch at the given address, in bits. Accepted values are: 8, 16, 32, and 64 if supported by the target.

    This parameter is optional. The width defaults to:

    • 32 bits for an address.
    • The width corresponding to the type of the symbol or expression, if entered.
  5. Expand Stop Condition and in the Expression field, enter a C-style expression. For example, if your application code has a variable x, then you can specify: x == 10.
    Figure 3-8 Watchpoint Properties dialog
    Watchpoint Properties dialog


  6. Click OK, to apply the condition to the watchpoint.
Non-ConfidentialPDF file icon PDF versionARM DUI0446Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.