STREAMS/UX for the HP 9000 Reference Manual
138
Debugging STREAMS/UX Modules and Drivers
STREAMS/UX Debugging Tool
q_minpsz = 0
q_maxpsz = -1
q_hiwat = 0x8000
q_lowat = 0x4000
q_bandp = 0x0
q_nband = 0
q_pad1[0] = 00
q_pad1[1] = 00
You may want to use CTRL-R when you are entering navigation commands,
not just when you pop the data structure stack. This is because strdb does
not automatically update the display when the contents of data structures
change. You need to enter the CTRL-R command to update the display with
new values from /dev/kmem.
In the previous example, suppose you want to print a field in the queue that
strdb does not format. This can be done using :b. The :b command prints
the contents of memory starting at a specified address. Optionally, you can
specify the number of bytes that :b should print. If you want to see the q_ptr
structure, enter the following.
:b 0x29cc48
0x0029cc48 : 00000001 005d9a00 00000000 00000000 |
.....]..........
0x0029cc58 : 00000001 005d8b00 00000000 00000000 | .....]..........
0x0029cc68 : 00000001 00605100 00000000 00000000 | .....`Q.........
0x0029cc78 : 00000000 00000000 00000000 00000000 | ................
0x0029cc88 : 00000000 00000000 00000000 00000000 | ................
0x0029cc98 : 00000000 00000000 00000000 00000000 | ................
0x0029cca8 : 00000000 00000000 00000000 00000000 | ................
0x0029ccb8 : 00000000 00000000 00000000 00000000 | ................
0x0029ccc8 : 00000000 00000000 00000000 00000000 | ................
0x0029ccd8 : 00000000 00000000 00000000 00000000 | ................
0x0029cce8 : 00000000 00000000 00000000 00000000 | ................
0x0029ccf8 : 00000000 00000000 00000000 00000000 | ................
0x0029cd08 : 00000000 00000000 00000000 00000000 | ................
0x0029cd18 : 00000000 00000000 00000000 00000000 | ................
0x0029cd28 : 00000000 00000000 00000000 00000000 | ................
0x0029cd38 : 00000000 00000000 00000000 00000000 | ................
-- Hit any key to continue --
The :x command is often used with :b. If the q_ptr buffer contains a pointer
to a STREAMS/UX data structure, you can format the structure using :x.
You know that word 0x0029cc4c in the q_ptr buffer contains a queue
address, 0x005d9a00. The :x command takes two arguments, a structure
address and its type. You can enter :x ? to see which types are accepted by
the :x command. This is shown below.