Download Debugger User`s Manual

Transcript
Freescale Semiconductor, Inc.
WATCH - Set, Modify, View, or Clear Watch Item
parameter, the command will terminate only if the user types a key. This instruction is
useful when executing a macro file and the current display on the screen needs to be
examined before executing further instructions from the macro file. The B option causes a
pause until all of the specified devices have entered the Debug mode. This option is useful
when executing a macro file where the devices must hit breakpoints or complete steps or
traces before the next command is accepted.
Example 13-47. WAIT Command
Freescale Semiconductor, Inc...
wait
Wait for a key stroke from the keyboard before executing any further
instructions.
wait 10
Wait ten seconds before executing another command from the keyboard.
wait dv0..3 b
Wait until devices 0,1,2 and 3 have all entered the debug mode.
13.49 WATCH - Set, Modify, View, or Clear Watch Item
WATCH [dev_list] [#wn] [radix] reg/addr/expression/{c_expression}
WATCH [dev_list] [#wn] OFF
The WATCH command is used to add, modify, view, and clear watch items. Watch items
are on a watch list that gets displayed every time the user does a trace, or a breakpoint is
hit. Additionally, any time a user types WATCH without any parameters, the watch list is
displayed.
Example 13-48. WATCH Command
Command
Explanation
watch r0
Add register r0 to the watch list
watch x:0
Add x:0 to the watch list
watch
{(count+1)%total}
Add the given C expression to the watch list
watch h {count/2}
Add the given C expression to the watch list with display radix hex.
watch b {flag}
Add the given C variable to the watch list with display radix binary.
watch r0+x:0
Add the expression r0+x:0 to the watch list
13-52
Suite56 ADS Debugger User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola