Debugging with GDB (February 2008)

Table Of Contents
Chapter 16: XDB to WDB Transition Guide 219
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, so the XDB
up is GDB down.
The following table lists the XDB and equivalent WDB commands for viewing the stack
contents:
XDB Command WDB Equivalent Meaning
down up View procedure one level nearer
outermost frame of stack (higher
number)
down number up number 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
number)
up number 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 specified depth on
stack
16.1.7 Status-viewing command
Type the show command with no arguments to get a list of current debugger settings.