User`s guide

38
Chapter 5: Examining and Changing Data
The variable types are listed in Table 5-5.
Examples include:
(dbx) pd sc
-1
(dbx) pd ssh
-1
(dbx) px sc
0xff
(dbx) px ssh
0xffff
(dbx) pd usc
255
(dbx) pd ush
65535
dbx always prints the bits in the appropriate type. pd is an exception; it
expands signed types with sign extension so the decimal value looks correct.
Another example:
(dbx) print sc, usc
’\377’ ’\377’
If $hexchars is set, this command displays ’0xff’ ‘0xff’. (This is a change
from releases previous to IRIX 5.2. Previously, the px, po cases on signed
short expanded to 32 bits, so px sc printed 0xffffffff.)
If the printed data type is pointer, dbx uses the format specified in the
$addrfmt or $addrfmt64 predefined dbx variable ($addrfmt64 is used on
only 64-bit processes).
Table 5-5 Variable Types
Type Variable Name Value
signed char sc 0xff
unsigned char usc 0xff
signed short ssh 0xffff
unsigned short ush 0xffff