You copied the Doc URL to your clipboard.

rwatch

This command sets a watchpoint for a data symbol. The debugger stops the target when the memory at the specified address is read.

Note

Watchpoints are only supported on scalar values.

Some targets do not support watchpoints. Currently you can only use watchpoint commands on a hardware target using a RealView® ICE unit.

The address of the instruction that triggers the watchpoint might not be the address shown in the PC register. This is because of pipelining effects.

Syntax

rwatch symbol | *address

Where:

symbol

Specifies a global/static data symbol. For arrays or structs you must specify the element or member.

address

Specifies the address. This can be either an address or an expression that evaluates to an address.

Example

rwatch myVar1                     # Set read watchpoint on myVar1
rwatch *0x80D4                     # Set read watchpoint on address 0x80D4