
D-30
Motorola DSP56000 Family Optimizing C Compiler User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola
Examining Source Files
D.7.4 Information on a Frame
There are several other commands to print information about the selected stack frame as
listed in Table D-11.
D.8 Examining Source Files
GDB knows which source files your program was compiled from, and can print parts of
their text. When your program stops, GDB spontaneously prints the line it stopped in.
Likewise, when you select a stack frame (see section Selection), GDB prints the line
which execution in that frame has stopped in. You can also print parts of source files by
explicit command.
D.8.1 Printing Source Lines
To print lines from a source file, use the ‘list’ command (abbreviated ‘l’). There are
several ways to specify what part of the file you want to print.
Table D-11. Frame Command
Command
Description
frame
This command prints a brief description of the selected stack frame. It can be abbreviated
‘f’. With an argument, this command is used to select a stack frame; with no argument, it
does not change which frame is selected, but still prints the same information.
info frame
This command prints a verbose description of the selected stack frame, including the
address of the frame, the addresses of the next frame in (called by this frame) and the next
frame out (caller of this frame), the address of the frame’s arguments, the program counter
saved in it (the address of execution in the caller frame), and which registers were saved in
the frame. The verbose description is useful when something has gone wrong that has
made the stack format fail to fit the usual conventions.
info frame addr
Print a verbose description of the frame at address addr without selecting that frame. The
selected frame remains unchanged by this command.
info args
Print the arguments of the selected frame, each on a separate line.
info locals
Print the local variables of the selected frame, each on a separate line. These are all
variables declared static or automatic within all program blocks that execution in this frame
is currently inside of.
F
Freescale Semiconductor, Inc.
n
.