HP-UX HB v13.00 Ch-08 - Crash Dumps

HP-UX Handbook – Rev 13.00 Page 28 (of 38)
Chapter 08 Crash Dumps
October 29, 2013
Print value at address 0x023ff070:
$ p i4 0x023ff070
0x023ff070
0x023ff070 : 0x023e95f0
I.e. the value referenced by the β€œpointer” 0x023ff070 is 0x023e95f0
If you know that you are referencing a certain structure you can print it:
$ p struct inode 0x023ff070
0x023ff070
0x023ff070 :
0x023ff070 struct inode {
0x023ff070 struct inode *i_chain[2]; 0x023e95f0
0x023ff078 dev_t i_dev; 0x40000005
0x023ff07c ino_t i_number; 0x00058a40
0x023ff080 u_int i_flag; 0x00000446
0x023ff084 ushort i_lockword; 0x0011
0x023ff088 tid_t i_tid; 0x00001b2f
0x023ff08c struct vnode {
0x023ff08c u_short v_flag; 0x0000
...
P4 provides some nice commands to calculate:
convert to decimal:
$ d 0x100
256
or
$ dec 0x100
256
convert to hexadecimal:
$ x 256
0x100
or
$ hex 256
0x100
convert to any format:
$ Let -b 256
100000000
$ x 0x7fff64d8-0x30
Print kernel globals/tunables:
$ printf '%d\n' nproc