Table 16-4 Data viewing and modification commands (continued)

XDB Command

WDB Equivalent

Meaning

p expr?format

p/format &expr

Print address using specified for-

 

 

mat

p class::

No equivalent

Print static members of class

p $lang

show language

Inquire what language is used

p {+ -}[\format

Use x/format command to

Print value of next/previous

 

obtain initial value, then use x

memory location using format

 

with no argument to obtain value

 

 

of next memory location. To

 

 

obtain value of previous memory

 

 

location, use "x $_ - 1".

 

pq expr

set expr, set var expr

Evaluate using the specified

 

 

format

pq expr?format

No equivalent

Determine address using specified

 

 

format

pq class::

No equivalent

Evaluate static members of class

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:

Table 16-5 Stack viewing commands

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

Print stack trace to depth

 

[depth]

 

T [depth]

T [depth] (with -xdb),

Print stack trace and show local

 

bt full [depth]

vars

top

frame 0

View procedure at innermost

 

 

frame of stack

258 XDB to WDB Transition Guide

Page 258
Image 258
HP gnu source-level debugger 5992-4701 manual Stack viewing commands