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

k
kwdb(1M) kwdb(1M)
q4 print The format of the command is:
q4 print [options] field1 [
%fmt],field2 [%fmt],...]
Print fields in the current pile. The options are:
%fmt Print numerical value of the field using the
%fmt format. Format char-
acters for
printf can be used in fmt.
-d Print the integer fields in decimal format.
-h Turn on the column heading even if the output is redirected.
-H Turn off the column heading even if output is not redirected.
-o Print integer fields in octal format.
-t Print fields one per line instead of in multiple columns.
-x Print integer fields in hexadecimal format.
q4 print The format of the command is:
q4 print [options][type] from addr
Print a structure from the value of addr. addr can be an expression.
options All the options available for the first form of the
q4 print command
shown above are valid.
type The type of the data structure to print. If the type is not given, use the
type of addr if available.
from addr
Start printing structures from the value of addr. addr can be an
expression.
q4 run func[args] Run a PERL script function func with or without args.
q4 symbols regexp Print kernel symbols matching regexp.
q4 trace [options] eventnum
Display the stack trace for the crash event number (num) for the crash target only.
The options for all the q4 trace commands are as follows:
-f Print input, local and output registers for each frame.
-u Print registers for the first level and arguments for each frame.
-v Verbose.
q4 trace [options] pc sp
Display stack trace with pc and sp (PA-RISC only).
q4 trace [options] pile
Display stack trace for structures from the current pile for process, processor,
thread and crash event structures.
q4 trace [options] process at addr
Display stack trace for the process at addr.
q4 trace [options] processor num
Display stack trace for the processor number specified by num.
q4 trace [options] savestate at addr
Display stack trace for savestate at addr.
q4 trace [options] thread at addr
Display stack trace for thread at addr.
q4 unset var_name Remove a user defined variable specified by var_name.
recall [num|-num|name]
Make a pile which is specified by num, -num,orname. See the forget command
for information on num, -num, and name.
system cmd Execute the shell command specified by cmd.
418 Hewlett-Packard Company 10 HP-UX 11i Version 3: February 2007