HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
k
kwdb(1M) kwdb(1M)
set kwdb log [on|off
]
If
on, set logging of kwdb output to the file,
kwdb-log.Ifoff, then disable log-
ging.
set kwdb logfile name
Change the name of log file from
kwdb-log to name.
set kwdb memory_cache number
Set the number of pages for caching memory read from crash dump.
set kwdb ntimeout number
Set the number of retries for remote network I/O.
set kwdb performanceregs
[on|off]
Enable or disable display of Itanium-based performance registers.
set kwdb remotelog [on|off]
Log data packet communications to and from the target to file
kwdb-remote-
log
for support purposes. If off is specified, then disable logging.
set kwdb q4 [on|off]
Set kwdb to q4 mode (on) or turn q4 mode off.
set kwdb spaceid sid
Set the virtual space ID for memory access to sid.
set kwdb timeout number
Set number to define the timeout for remote network I/O in tenths of seconds.
set kwdb ttyoutput [on|off]
Set the terminal output on or off.
set print strings [on|off]
Control the printing of strings referenced by character pointers.
set thread addr Set thread with the given address addr as the current context.
set crash event n
Set crash event n as the current context during crash dump analysis. n is the index
of the crash event in the crash event table.
q4 Commands
Some q4 commands are prefixed with q4, because the same commands exist in KWDB with different
behavior. If kwdb runs in q4 mode, this prefix is not required.
adddebug file Add type information from an object file.
addmodule modname
Process the DLKM module modname for debugging.
catalog [-h] regex Print cataloged types matching regex. Use the
-h option to print the header even if
output is redirected.
code [-o][name|addr]
disassemble [-o][name|addr]
Print the assembly code for function name or the function surrounding the address
addr. You can use either the code or disassemble command.
-o Read from the local copy of the kernel file, and not from the crash dump or
remote target.
constant Print enumerants in symbol table with values.
discard [cond_expr]
Discard structures satisfying a condition specified by cond_expr.
disassemble [name|addr]
Print the assembly code for function name or the function surrounding the address
addr.
evaluate expr Evaluate the expression expr, which may contain one or more of the following:
HP-UX 11i Version 3: February 2007 − 7 − Hewlett-Packard Company 415