
Displaying Your Source Programs (or Other Text Files)
6-6
Displaying C code
Unlike assembly language code, C code isn’t reconstructed from memory
contents—the C code that you view is your original C source. You can display
C code explicitly or implicitly:
-
You can force the debugger to show C source by entering a FILE, FUNC,
or ADDR command.
-
In auto and mixed modes, the debugger automatically opens a FILE
window if you’re currently running C code.
These commands are valid in C and mixed modes:
file
Use the FILE command to display the contents of any text file. The syntax for
this command is:
file
filename
This uses the FILE window to display the contents of
filename. The debugger
continues to display this file until you run a program and halt in a C function.
Although this command is most useful for viewing C code, you can use the
FILE command for displaying any text file. You can view only one text file at
a time. Note that you can also access this command from the Load pulldown
menu.
(Displaying a file
doesn’t load that file’s object code. If you want to be able to
run the program, you must load the file’s associated object code as described
in Section 6.3,
Loading Object Code.)
func
Use the FUNC command to display a specific C function. The syntax for this
command is:
func
function name
or
func
address
FUNC modifies the display so that
function name or address is displayed
within the window. If you supply an
address instead of a function name, the
FILE window displays the function containing
address and places the cursor
at that line.
Note that FUNC works similarly to FILE, but you don’t need to identify the name
of the file that contains the function.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...