
Managing Data in a WATCH Window
7-15
Managing Data
Displaying data in the WATCH window
The debugger has one command for adding items to a WATCH window.
wa
To open a WATCH window, use the WA (watch add) command. The syntax is:
wa
expression [,[ label] [, [display format] [, window name] ] ]
When you first execute WA, the debugger opens a WATCH window. After that,
executing WA adds additional values to the WATCH window, unless you open
an additional watch window.
-
The
expression parameter can be any C expression, including an expres-
sion that has side effects. It’s most useful to watch an expression whose
value will change over time; constant expressions provide no useful func-
tion in the WATCH window.
If you want to use the
contents of an address as a parameter, be sure to
prefix the address with the C indirection operator (*). Use the WA com-
mand to do this:
wa *0x26
-
The
label parameter is optional. When used, it provides a label for the
watched entry. If you don’t use a
label, the debugger displays the expres-
sion in the label field.
-
The
display format parameter is optional. When used, the data is dis-
played in the selected format as shown in Table 7–1 on page 7-17.
-
The
window name parameter is optional. If you omit the window name pa-
rameter, the debugger displays the expression in the default WATCH win-
dow (labeled WATCH). You can open additional WATCH windows by us-
ing the
window name parameter. When you open an additional WATCH
window, the debugger appends the
window name to the WATCH window
label. You can create as many WATCH windows as you need.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...