Debugging with GDB (September 2007)
Chapter 16: XDB to WDB Transition Guide 215
pq {+ |
-}[\format
No equivalent Evaluate next/previous memory
location using format
16.1.6 Stack viewing commands
The GDB concept of the top and bottom of the stack is the opposite of XDB, s o the XDB
up is GDB down.
The following table lists the XDB and e quivalent WDB commands for viewing the stack
contents:
XDB Command WDB Equivalent Meaning
down up View procedure one level nearer
outermost frame of stack (higher
numb e r)
down numb e r up numb e r View procedure number levels
nearer outermost frame of stack
t [depth] t [depth] (with -xdb), bt [depth] Print stack trace to depth
T [depth] T [depth] (with -xdb), bt full
[depth]
Print stack trace and show local
vars
top frame 0 View procedure at innermost
frame of stack
up down View procedure one level nearer
innermost frame of stack (lower
numb e r)
up numb e r down number View procedure number levels
nearer innermost frame of stack
V [depth] V [depth] (with -xdb), frame
[depth]
Display text for current active
procedure or at speciļ¬ed depth on
stack
16.1.7 Status-viewing command
Type the show command with no arguments to get a list of current debugger settings.