awatch

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

Note

Watchpoints are only supported on scalar values.

Some targets do not support watchpoints. Currently you can only set a watchpoint on a hardware target using a debug hardware agent.

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.

Show/hideSyntax

awatch [-d] [-p] { [filename:]symbol | *address} [vmid vmid]

Where:

d

Disables the watchpoint immediately after creation.

p

Specifies whether or not the resolution of an unrecognized watchpoint location results in a pending watchpoint being created.

filename

Specifies the file.

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.

vmid

Specifies the Virtual Machine ID (VMID) to apply the breakpoint to. This can be either an integer or an expression that evaluates to an integer.

Show/hideExample

Example 9. awatch

awatch myVar1                     # Set read/write watchpoint on myVar1
awatch *0x80D4                    # Set read/write watchpoint on address 0x80D4

Show/hideSee also

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