1.3.223 watch-set-property

Updates the properties of an existing watchpoint.

Syntax

watch-set-property number property

Where:

number

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

property

Specifies the property to set. The valid properties are:

if [expression]

Specifies an expression that is evaluated when the watchpoint is hit. If the value of the expression evaluates to true, then the debugger stops the target, otherwise execution resumes. If no expression is specified then the watchpoint condition is deleted.

data-width [bits]

Specifies 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.

Other target-dependent properties

This command supports other properties depending on your target. Use the info watchpoints capabilities command to display a list of properties that you can use for the current connection.

Example 1-226 Examples

watch-set-property 4 if myVar1 == 2   # Update the 'if' property of watchpoint 4,
                                      # meaning the watchpoint will only be hit if
                                      # myVar1 evaluates to 2
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.