HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
k
kwdb(1M) kwdb(1M)
watch name Set the watchpoint at a global symbol specified by name.
Kernel Stack
This section explains commands for examining the stack frames. The debugger assigns numbers to the
stack frames starting from zero for the innermost (currently executing) frame.
backtrace [n]
bt[n] Trace all frames in stack or n number of frames. If n is specified and is greater
than zero (0), then start from the innermost frame. If n is specified and is less than
zero, then start from the outermost frame.
down n Select the frame that is n frames down.
frame [n] Select frame n or the frame at address n.Ifn is not specified, then display the
current frame.
info all-reg Display all registers including floating point registers. This command is not sup-
ported in PA-RISC architecture.
info args Display arguments of the selected frame.
info frame [addr] Describe the selected frame, or the frame at addr.
info locals Display locals of the selected frame.
info reg [rn] Display register values for a selected frame. If rn is specified, then display register
rn.
up n Select a frame that is n frames up.
Execution Control
This section explains commands to control execution of instructions in a program.
call function(arg1, arg2,...arg8)
Call the specified function with up to eight 64-bit sized arguments.
continue [count] Continue running. If count is specified, ignore this breakpoint count number of
times.
finish Continue executing until the current function returns.
jump line
jump *address Resume execution at specified line number (line)or(address).
next [count] This command is similar to the step command in that it executes the next com-
mand but it does not step into functions.
nexti [count]
ni [count] This command is similar to the stepi command but does not step into functions.
return [expr] Pop selected stack frame without executing. If an argument is given in expr,itis
an expression for the value to return.
set var=expr Evaluate expr without displaying it. Use this command for altering variables.
step [count] Continue to execute until another source line is reached. If the repeat count is
specified, execute count number of times.
stepi [count]
si [count] Step by machine instructions rather than source lines.
until [location] Execute or run until the next instruction. location is specified as a line, address, or
function. If location is specified, run until the location is reached.
Display
This section explains commands for displaying values of different data structures of the program
(kernel/dump) being debugged.
disassem [addr] Display memory as machine instructions for the function at addr.
disassem [func] Display memory as machine instructions for the function func.
print [/fmt][expr] Show the value of expr according to format fmt:
412 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: February 2007