kwdb.1m (2011 03)

k
kwdb(1M) kwdb(1M)
ltor (vaddr)
Get the physical address corresponding to the virtual address vaddr . vaddr
can be an expression.
tooffset (long_addr)
Get the space of long_addr .
tospace (long_addr)
Move the offset of long_addr to space.
var_name =value
Create a variable var_name with the value of value .
examine The format of the command is:
examine [-o|-r][addr][
for no_of_lines][using [n] fmt]
Print the contents of memory from address addr using the format specified.
-o Set the flag to read the data from the kernel file and not from the crash
dump or to read from the local copy while doing remote debugging.
-r Set the flag to read the memory from given address without translation.
addr Start reading memory from the value of addr . addr can be an expression.
If omitted, use its value from the previous run.
for no_of_lines
Specify how many lines to read. no_of_lines can be an expression. If not
given, use the value from the previous run. The default value is 1.
using [n] fmt
Print n number of items per line as per the format specified by fmt. fmt
can be any of the following characters:
^ Decrement the address by the current increment (that is, back up over
the previous value retrieved). Nothing is printed.
+ Increment the address by one. Nothing is printed.
- Decrement the address by one. Nothing is printed.
a Print the value of dot as a symbolic kernel address. The address is not
incremented.
A Print the value of dot as a decimal number. The address is not incre-
mented.
b Print the address in hexadecimal. Increment the address by one byte.
B Print the address in octal. Increment the address by one byte.
c Print a character. Increment address by one byte.
C Print a character with backslash escapes to make it readable. Incre-
ment the address by one byte.
d Print a half-word in decimal. Increment the address by two bytes.
D Print a word in decimal. Increment the address by four bytes.
f Print an IEEE float. Increment the address by four bytes.
F Print an IEEE double. Increment the address by eight bytes.
i Print an instruction. Increment the address by the size of instruction.
I Print a bundle of instructions. The address is incremented by size of a
bundle.
L Print 64 bit in hexadecimal. The address is incremented by eight.
o Print a half-word in octal. Increment the address by two.
O Print a word in octal. Increment the address by four.
P Print the word that dot points to as a symbolic kernel address. Incre-
ment the address by four.
s Print a string. Increment the address by the length of the string
(including the trailing null character).
S Print a string with enough backslash escapes to make it readable.
Increment the address by length of the string.
u Print a half-word in unsigned decimal. Increment the address by two.
U Print a word in unsigned decimal. Increment the address by four.
x Print a half-word in hexadecimal. Increment the address by two.
8 Hewlett-Packard Company 8 HP-UX 11i Version 3: March 2011