kwdb.1m (2011 03)

k
kwdb(1M) kwdb(1M)
info source Show the name of the current source file.
info sources List all source files in use.
list Show the next ten lines of source list.
list - Show the previous ten lines of source list.
list f,l Show the source list from line f to line l.
list lines Display the source surrounding lines , which is specified as one of the following:
*addr Display the line containing addr .
[file :]num Display the line number, num.Iffile is specified, then display the
line number of file.
[file :]func Display the beginning of the function, func .Iffile is specified, then
display the beginning of func in file.
+off Turn off lines after the last printed line.
-off Turn off lines previous to last printed line.
rev regex Search preceding source lines for the regular expression specified by regex.
show dir Show current source path in dir .
DLKM Commands
This section explains commands for handling the Dynamically Loadable Kernel Modules while debugging.
This debugging is similar to shared library debugging in application debugging.
catch load [modname]
Stop on loads of module modname .Ifmodname is omitted, catch all loads.
catch unload [modname]
Stop on unloads of module modname.Ifmodname is omitted, catch all unloads.
info sharedlibrary
Display information about loaded modules.
path directory Add the directory to the search path for kernel modules.
tcatch load [modname]
Similar to the catch load command but a temporary catchpoint. The catch-
point which was set is deleted when hit. If modname is omitted, catch all loads.
tcatch unload [modname]
Similar to the catch unload command but temporary. Deleted when hit. If
modname is omitted, catch all unloads.
uncatch load [modname]
Do not catch load for modname.Ifmodname is omitted, do not catch any loads.
uncatch unload [modname]
Do not catch unload for modname.Ifmodname is omitted, do not catch any
unloads.
Special Debugging Commands
This section explains commands to modify
kwdb parameters.
cpu select n
cs n
set cpu n Select CPU n as the viewed CPU.
set kwdb cache [on|off]
Turn memory caching on or off.
set kwdb controlregs [on|off]
Enable (on) or disable (off) display of Itanium-based control registers.
set kwdb floatregs [on|off]
Enable (on) or disable (off) display of Itanium-based floating point registers.
6 Hewlett-Packard Company 6 HP-UX 11i Version 3: March 2011