
Watch Some Values and Single-Step Through Code
2-19
An Introductory Tutorial to the C Source Debugger
Now try out the single-step commands. Hint: Watch the PC in the FILE and
DISASSEMBLY windows; watch the values that you set up in the WATCH win-
dow.
Single-step through the sample program:
step 20
Try This:
Notice that the step command single-stepped each assembly
language statement (in fact, you single-stepped through 20 assembly
language statements). The debugger supports additional single-step com-
mands that have a slightly different flavor.
-
For example, if you enter:
cstep 20
you’ll single-step 20
C statements, not assembly language statements
(notice how the PC “jumps” in the DISASSEMBLY window).
-
Reset the program entry point and run to main().
restart
go main
Now enter the NEXT command, as shown below. You’ll be single-stepping
20 assembly language statements
.
next 20
(There’s also a CNEXT command that “nexts” in terms of C statements.)
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...