HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)
a
adb(1) adb(1)
Variable Commands
This is supported in backward compatibility mode only. It consists of a
> followed by a variable, var and an
optional value. This action assigns value to the variable or register named by var.
If not specified, value is assumed to be the value of
dot. This behavior is deprecated.
Keyword Form Commands
All commands in this form consist of a keyword followed by a variable number of arguments.
In backward compatibility mode, a
$ must precede these keyword form commands.
< filename Reads commands from filename. If this command is executed in a file, further commands
in the file are not seen.
In backward compatibility mode, if a count is given, it is placed in variable 9 before the
first command in the file is executed. This behavior is deprecated.
<< filename Similar to
< except it can be used in a file of commands without causing the file to be
closed.
In backward compatibility mode, variable 9 is saved when the command executes and is
restored when it completes. This behavior is deprecated.
> filename It sends output to filename, which is created if it does not already exist.
In backward compatibility mode, the output is appended to filename.
>> filename Similar to
> except that the output is appended to filename.
rp Print the process ID and register values.
r Print the general registers and the instruction addressed by the process counter.
ra Print all the registers.
f Print the floating-point registers.
fd Print the double precision floating-point registers.
b Print all breakpoints, their number, associated counts, state and commands of the
current subprocess.
ps Print information about all the subprocesses being traced by adb— that is, their process
IDs, their types (created or attached), counts, and threadids.
pc Print information about the current debuggee. If the current debuggee is a subprocess,
then it prints subprocess information (process ID, type, count) and prints information
about each thread (thread ID, count, signal) of the subprocess. If the current debuggee is
a core then it prints information about each thread present in the core (thread no, utid,
lwpid, PC value and PC Symbol).
pt Print information about the current thread (thread ID, count, signal). If the current
debuggee is a core then it prints information about the current thread of the core. (utid,
lwpid and register information).
c The arguments can be address and count. Print C stack backtrace. If address is given, it
is taken as the address of the current frame (instead of the normal stack frame pointer).
If count is given, only the first count frames are printed.
In backward compatibility mode, this command has a non-standard deprecated behavior.
If arguments are not mentioned, it uses address and count.
w [ width ] Set the page width for output to width. (The default is 80.)
In backward compatibility mode, this command has a non-standard deprecated behavior.
If width is not mentioned, address is taken as width.
s [ offset ]Setmaxoffset to offset.
In backward compatibility mode, this command has a non-standard deprecated behavior.
If offset is not mentioned, address is taken as offset.
o The default radix for all integers input is set to octal.
HP-UX 11i Version 3: February 2007 − 7 − Hewlett-Packard Company 35