Debugging with GDB (February 2008)

Table Of Contents
230 Debugging with GDB
t whatis, ptype Show type 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 commands for locating
source lines:
XDB Location Syntax WDB Equivalent Meaning
line line Source line and code address
file[:line] file[:line] Source line and code address