Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
a
adb(1) adb(1)
- dot is decreased by 1. Nothing is printed.
new-line
Repeat the previous command with a count of 1. The value of dot continues from the end of the
previous format, unlike a [?/] command with no address, which repeats the previous address
value. New-line can also be used to repeat a :s or :c command; however, any arguments to the
previous command are lost.
[?/]l value mask
Words starting at dot are masked with mask and compared with value until a match is found. If
L is used, adb looks to match 4 bytes at a time instead of 2. If no match is found, dot is left
unchanged; otherwise dot is set to the matched location. If mask is omitted -1 is used.
[?/]w value ...
Write the 2-byte value into the addressed location. If the command is W, write 4 bytes. Odd
addresses are not allowed when writing to the subprocess address space.
=m Toggle the address mapping of corfil between the initial map set up for a valid core file and the
default mapping pair which the user can modify with /m. If the corfil was invalid, only the
default mapping is available.
[?/]m b1 e1 f1[?/
]
Record new values for (b1, e1, f1). If fewer than three expressions are given, the remaining map
parameters are left unchanged. If the
? or / is followed by *, the second segment (b2, e2, f2)of
the mapping is changed. If the list is terminated by
? or /, the file (objfil or corfil, respectively)
is used for subsequent requests. (For example,
/m? causes / to refer to objfil.) A
/m command
switches the corfil mapping to the default mapping pair. For a valid core file, the
=m command
can be used to switch back to the initial mapping.
>name
Assign dot to the variable or register named.
! Call a shell to read the remainder of the line following !.
The following $ commands take the form $modifier:
$<f Read commands from the file f. If this command is executed in a file, further commands
in the file are not seen. If a count is given, and is zero, the command is ignored. The
value of the count is placed in variable 9 before the first command in f is executed.
$<<f Similar to $< except it can be used in a file of commands without causing the file to be
closed. Variable 9 is saved when the command executes and is restored when it com-
pletes. Only five $<< files can be open at once.
$>f Send output to the file f, which is created if it does not already exist.
$new-line Print the process id and register values.
$b Print all breakpoints and their associated counts and commands.
$c 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.
$d Set the default radix to address and report the new value. Note that address is inter-
preted in the (old) current radix. Thus
10$d never changes the default radix. To make
decimal the default radix, use 0d10$d.
$e The names and values of external variables are printed.
$f Print the floating-point registers.
$m Print the address map. This includes both the initial and default maps for a valid corfil
with an indication of which is currently active.
$N [nodenumber]
Print the number of nodes on V-class multinode machines and the current node number.
To switch to another node, enter $N nodenumber.
$o The default for all integers input is octal.
$q Exit from adb.
Section 16 4 HP-UX Release 11i: December 2000
___
___