
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.)
Summary of Contents for TMS320C6 Series
Page 10: ...x ...
Page 20: ...xx ...
Page 118: ...4 20 ...
Page 144: ...6 16 ...
Page 164: ...7 20 ...
Page 170: ...8 6 ...
Page 284: ...B 18 ...
Page 290: ...C 6 ...