Debugging with GDB (September 2007)

226 Debugging with GDB
t whatis, ptype Show typ e of the expression
T (1) ptype Show type of expression, including
base class information
u u Expression in unsigned decimal
format
U (1) u Expression in long unsigned deci-
mal format
w No equivalent Wide character string
W (1) No equivalent Address of wide character string
x x Print in hexadecimal
X (1) x Print in long hexadecimal
z t Print in binary
Z (1) t Print in long binary
(1) HP WDB will display data in the size appropriate for the data. It will not extend
the length displayed in response to one of the uppercase formchars (e.g. O, D, F).
16.4 XDB location syntax and HP WDB equivalents
The following command lists the XDB and the equivalent WDB comm ands for lo cating
source lines:
XDB Location Syntax WDB Equivalent Meaning
line line Source line and code address
file[:line] file[:line] Source line and code address