from gdb.texinfo on 11 July 1994 -->
Debugging with GDB - Frame Info
Go to the previous, next section.
There are several other commands to print information about the selected
stack frame.
frame
f
- When used without any argument, this command does not change which
frame is selected, but prints a brief description of the currently
selected stack frame. It can be abbreviated
f
. With an
argument, this command is used to select a stack frame.
See section Selecting a frame.
info frame
info f
-
This command prints a verbose description of the selected stack frame,
including the address of the frame, the addresses of the next frame down
(called by this frame) and the next frame up (caller of this frame), the
language that the source code corresponding to this frame was written in,
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
info f 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 either static or automatic)
accessible at the point of execution of the selected frame.
info catch
-
Print a list of all the exception handlers that are active in the
current stack frame at the current point of execution. To see other
exception handlers, visit the associated frame (using the
up
,
down
, or frame
commands); then type info catch
.
See section Breakpoints and exceptions.
Go to the previous, next section.