HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

k
kwdb(1M) kwdb(1M)
a address, absolute and relative
c character
d signed decimal
f floating point
o octal
t binary
u unsigned decimal
x hexadecimal
x [N|u|f]
expr Examine memory at the address specified by expr. The optional format
specifications are specified by one of the following:
N The count of how many units to display.
u The unit size. One of
b individual bytes
g giant words (eight bytes)
h half words (four bytes)
w words (four bytes)
f Printing format. Any format listed with print command, or
i machine instructions
s null-terminated string
display [/fmt][expr]
Show the value of expr each time the kernel stops according to the format fmt listed
with
x command.
display Display all enabled expressions on the list created with display command.
enable disp [n] Enable display for all expression(s). Use the list number, n, to define a specific
number of expressions to display.
info display Display a numbered list of display expression(s).
undisplay [n] Remove all expressions from the list of automatically-displayed expressions. Use
the list number, n, to define a specific number of expressions to remove.
disable disp [n] Disable display for all expression(s) Use the list number, n, to define a specific
number of expressions to disable.
Symbol Table
This section explains commands for displaying different symbol related attributes in the program being
debugged.
info var [regex] Show all names types of global variables (all, or matching the regular expression
specified by regex).
info address s Show where the address of the symbol name s is stored.
info func[regex] Show names, types of defined functions (all, or matching the regular expression
specified by regex).
ptype [expr]
ptype type Describe type, struct, union, or enum. If the expression, expr, is specified, it is
described also.
whatis [expr] Show data type of expr (or $) without evaluating.
Source Files
This section explains commands for source level kernel debugging. For example, commands for displaying
and navigating the source while debugging.
dir names Add directory names to the front of the source path.
dir Clear the source path.
forw regex Search the following source lines for the regular expression specified by regex.
info line num Show the starting and ending addresses of code for the source line num.
HP-UX 11i Version 3: February 2007 5 Hewlett-Packard Company 413