HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)
k
kwdb(1M) kwdb(1M)
translate addr Display the page table entry or translation registers used for translating addr.
variables Display all user defined variables and values.
write The format of the command is:
write [-o|-r] data at
addr [using format]
Write the given data into memory or into a kernel file at the address specified by
addr. Options
-o and -r have the same meanings as explained in the
examine
command.
data The data to be written.
addr The address to write the data to. addr can be an expression including
kernel symbols.
format The format is the character
b
(for 1 byte), w (for 2 bytes), W (for 4 bytes),
L (for 8 bytes), c (for 1 byte), or
s (length of string). The default format
for numeric data is
W.
Miscellaneous Commands
This section explains commands for performing miscellaneous activities in the debugger while debugging
the target.
cd dir Set working directory to dir for the debugger and program being debugged.
define cmd Define a new command, cmd. The definition appears on following lines, one com-
mand per line. End with a line that has only
document cmd Document a user-defined command, cmd. Give documentation on the following
lines. End with a line that has only
file [file] Use file as the program to be debugged.
pwd Print the working directory.
shell command_line
Execute the rest of the line with command_line as a shell command.
source script Read and run commands from a file named script.
The gdb commands not supported by KWDB include:
core [file], exec [file], handle signal, run, set args
, set env, signal, throw, exec,
fork, vfork, and tty.
EXTERNAL INFLUENCES
The following environment variables influence the behavior of KWDB.
PXDB The path of the pxdb file for kwdb to use for preprocessing the kernel file and
dlkm module files. The default path is /usr/ccs/bin/pxdb
.
Q4_PERL_PATH The path of the PERL for KWDB to use while running in PERL programming mode.
The default path is /opt/perl/bin/perl.
Q4_ROOT The path which controls the location of PERL and startup scripts. The default path
is /usr/contrib/Q4.
Q4_STARTUP_SCRIPT
The path of the start up PERL script file. The default path is $HOME/.q4rc.pl.
AUTHOR
kwdb was developed by the Free Software Foundation, Inc.
FILES
$HOME/.kwdbinit The user’s global initialization file which sets the initial debugger state no matter in
which directory the debugger is started.
.kwdbinit The user’s local initialization file which sets the initial debugger state when the
debugger is started in the directory containing this file. The commands in
$HOME/.kwdbinit, if present, are executed first followed by the commands in
./.kwdbinit .
HP-UX 11i Version 3: February 2007 − 11 − Hewlett-Packard Company 419