6.6.85. watch

The watch command displays the name, type, and value of the specified expression, in the following format:

name<tab>type<tab>value

The command displays a simple expression according to the specified format, or the default format if you do not specify one (see also format). It displays a complex expression after suitably expanding it. See also setwatch.

The shorthand form of the watch command is wat.

Alias

print is an alias for watch.

Syntax

wat expr[ format]

Example

wat 5*Int_1_Loc-Int_2_Loc==10 dec

Displays the value 1 (true) if 5*Int_1_Loc-Int_2_Loc evaluates to 10, or 0 (false) otherwise.

Copyright © 1999-2004 ARM Limited. All rights reserved.ARM DUI 0066F
Non-Confidential