kwdb.1m (2011 03)
k
kwdb(1M) kwdb(1M)
target nddb -h comm_server -t ethernet_mac_address
Debug an HP-UX 11.0 or earlier kernel using
nddb compatibility mode. comm_server is the com-
munication server. ethernet_mac_address is the Ethernet LAN MAC address of the LAN card used
for debugger communications in the target system.
target pa_kern comm_server [:47001]
Set up LAN-based debugging on the kwdbd server on the comm_server for PA-RISC architecture.
target sub name_of_sub [:47001]
Set up debugging for a Superdome, Keystone, or ORCA system using SUB/SINC. name_of_sub is
the console name of the system.
target udp ip-address
Set up UDP-based debugging. ip-address is the IP address of the target system.
target crash dir
Specify the target crash directory, dir , which is to be debugged. The
target crash command is
not required if
kwdb is invoked with -q4
option. The attach command is not used with this tar-
get.
target devmem
kwdb runs on the target system and debugs live memory using
/dev/mem or /dev/kmem. The
target devmem command is not required if kwdb is invoked with the /dev/mem or /dev/kmem
argument. The attach command is not used with this target system.
attach 0 [target_id]
Attach the remote target system. If target is connected through the kwdbd or nddbcs communica-
tion server, target_id is the Ethernet MAC address of target LAN. If communication is through
SUB/SINC, target_id is the partition name.
Breakpoints
Breakpoints are used to stop execution at a particular location in a program. This section explains com-
mands used for breakpoints.
break [file:]line Set the breakpoint at the specified line number line in file .
break [file:]func Set the breakpoint at the function func in file.
break *addr Set the breakpoint at the specified address addr.
break Set breakpoint at next instruction.
break [location] if expr
Break conditionally on a nonzero expr at the next instruction (or location specified
as line or address or function).
clear Delete breakpoints at next instruction.
clear [file:] func Delete breakpoints at entry to the function at func.
clear [file:] line Delete breakpoints on source line.
commands n [silent] command-list end
Execute command-list every time breakpoint n is reached.
cond n [expr] Make a new conditional expression on breakpoint n. Make an unconditional
expression if expr is omitted.
delete [n] Delete breakpoints or the breakpoint n.
disable [n] Disable breakpoints or the breakpoint n.
enable [n] Enable breakpoints or the breakpoint n.
ignore n count Ignore breakpoint at n, count number of times.
info break Show breakpoints and watchpoints.
tbreak [args] Specify a temporary breakpoint. Similar to the break command except that the
breakpoint is temporary. When the breakpoint is reached, the breakpoint is dis-
abled. args are accepted as in the break command.
watch *addr Set the watchpoint at address specified by addr which is the default. Four bytes
will be watched.
HP-UX 11i Version 3: March 2011 − 3 − Hewlett-Packard Company 3