Commands for printing targets script work on whichever stack frame is selected at the moment. Here are the commands for selecting a stack frame; all of them finish by printing a brief description of the stack frame just selected.
up n
Move n frames up the stack. For positive numbers n, this advances toward the outermost frame, to higher frame numbers, to frames that have existed longer. n defaults to one.
down n
Move n frames down the stack. For positive numbers n, this
advances toward the innermost frame, to lower frame numbers, to frames
that were created more recently. n defaults to one. You may
abbreviate down
as do
.
All of these commands end by printing two lines of output describing the frame. The first line shows the frame number, the function name, the arguments, and the source file and line number of execution in that frame. The second line shows the text of that source line.
For example:
remake<8> up /tmp/remake/src/Makefile:386: all-am remake<8> T #0 make at /tmp/remake/src/Makefile:263 =>#1 all-am at /tmp/remake/src/Makefile:386 #2 all at /tmp/remake/src/Makefile:224
frame args
The frame
command allows you to move from one stack frame to
another, and to print the stack frame you select. args is the
the stack frame number. Without an argument, frame
prints the
current stack frame.