
Description of the C Source Debugger
1-2
1.1
Description of the C Source Debugger
The ’C6x C source debugging interface improves productivity by allowing you
to debug a program in the language it was written in. You can choose to debug
your programs in C, assembly language, or both. And, unlike many other de-
buggers, the ’C6x debugger’s higher level features are available even when
you’re debugging assembly language code.
The Texas Instruments advanced programmer’s interface is easy to learn and
use. Its friendly window-, mouse-, and menu-oriented interface reduces learn-
ing time and eliminates the need to memorize complex commands. The
debugger’s customizable displays and flexible command entry let you develop
a debugging environment that suits your needs. A shortened learning curve
and increased productivity reduce the software development cycle, so you’ll
get to market faster.
Figure 1–1 identifies several features of the debugger display.
Figure 1–1. The Basic Debugger Display
DISASSEMBLY
0000681c 00000000
NOP
00006820 003c54f4
call:
STW,D2
A0,*B15––[2]
00006824 013c22f4
STW,D2
A2,*B15[1]
00006828 00000d10
B,S1
call+104 (000
0000682c 00008000
NOP
5
00006830 003c22e4
LDW,D2
*+B15[1],A0
00006834 00006000
NOP
4
00006838 0008667c
STW,D2
A0,*+B14(0x86
0000683c 00001410
B,S1
call+160(0006
00006840 00008000
NOP
5
00006844 003c22e4
LDW,D2
*+B15[1],A0
00006848 00006000
NOP
4
0000684c 00002058
SHL,S1
A0,0x01,A0
00006850 0008677c
STW,D2
A0,*+B14(0x86
00006854 00001190
B,S1
call+172 (000
00006858 00008000
NOP
5
0000685c 003c22e4
LDW,D2
++B15[1],A0
CALLS
2: call()
1: main()
CPU
A0
00006998
B0
00000000
A1
00000001
B1
00000000
A2
00000000
B2
00000000
A3
00000000
B3
00000000
A4
00002a28
B4
00000000
A5
00000000
B5
00000000
A6
00000000
B6
00000000
A7
00000000
WATCH
1: str.a 0
2: F0 1.000000e
3: color GREEN
FILE: sample.c
0038
int aai[10][5];
0039
int *pi;
0040
char *xpc;
0041
0042
call(newvalue)
0043
int newvalue;
0044
{
0045
static in value = 0;
0046
0047
switch (newvalue & 3)
0048
{
0049
case 0 : str.a = newvalue;
break;
0050
case 1 : str.b = ne 1;
0051
case 2 : str.c = newvalue * 2;
0052
case 3 : xcall(newvalue);
break;
COMMAND
>>>
whatis str
struct xxx str;
step
DISP: astr[7]
a
123
b
555
c
75435
f1
3
f2
6
f3
0x00f000a
f4
[...]
DISP: astr[7].f4
[0] 0
[1] 9
[2] 7
[3] 54
[4] 3
[5] 3
[6] 4
[7] 123
[8] 4
[9] 789
Load
Break
Watch
Memory
MoDe
Run=F5
Step=F8
Next=F10
Color
Pulldown
menus
Disassembly
display
C source
display
Interactive
command
entry and
history window
Scrolling data
displays with
on-screen,
interactive
editing
Function call
traceback
Natural-format
data displays
MEMORY
00007cdc
00000000
00007ce0
07d5142a
00007ce4
0780606a
00007ce8
0007fe2a
00007cec
0000006a
00007cf0
07bc01e2
00007cf4
07bf07a2
00007cf8
0700002a
00007cfc
0700606a
00007d00
013fe428
00007d04
01000068
00007d08
0fffd410
00007d0c
00004000
00007d10
003e8c28
00007d14
00000068
00007d18
0ffd8610
00007d1c
00004000
00007d20
003e9428
00007d24
00000068
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 ...