Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
Table 6 Data viewing and modification commands (continued)
MeaningHP WDB EquivalentXDB Command
Print value using the specified
format
p[/format expr [Note: The
count and size portions of formats
are not allowed in the p (print)
command. They are allowed in
the x command (examine
memory).]
p expr[\format
Print address using specified for-
mat
p/format &exprp expr?format
Print static members of classNo equivalentp class::
Inquire what language is usedshow languagep $lang
Print value of next/previous
memory location using format
Use x/format command to
obtain initial value, then use x
with no argument to obtain value
of next memory location. To
obtain value of previous memory
location, use "x $_ - 1".
p {+ | -}[\format
Evaluate using the specified formatset expr, set var exprpq expr
Determine address using specified
format
No equivalentpq expr?format
Evaluate static members of classNo equivalentpq class::
Evaluate next/previous memory
location using format
No equivalentpq {+ | -}[\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 7 Stack viewing commands
MeaningHP WDB EquivalentXDB Command
View procedure one level nearer
outermost frame of stack (higher
number)
updown
View procedure number levels
nearer outermost frame of stack
up numberdown number
16.1 By-function lists of XDB commands and HP WDB equivalents 261