Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
a
adb(1) adb(1)
Expressions
Expressions are interpreted as follows:
. The value of dot.
+ The value of dot increased by the current increment.
^ The value of dot decreased by the current decrement.
" The last address typed.
integer A number. The prefix 0 (zero) forces interpretation in octal radix; the prefixes 0d and
0D force interpretation in decimal radix; the prefixes 0x and 0X force interpretation in
hexadecimal radix. Thus 020 = 0d16 = 0x10 = sixteen. If no prefix appears, the
default radix is used; see the $d command. The radix is initialized to the base used in
the assembly language for the processor involved. Note that a hexadecimal number
whose most significant digit would otherwise be an alphabetic character must have a 0x
(or 0X) prefix.
integer.fraction
A 32-bit floating-point number.
’cccc’ The ASCII value of up to 4 characters. A backslash (
\) can be used to escape a single
quote (
’).
< name name can have the value of either a variable or a register.
adb maintains a number of
variables named by single letters or digits; see Variables below. If name is a register, the
value of the register is obtained from the CORE_PROC segment in corfil (before the sub-
process is initiated) or from the user area of the subprocess. Register names are imple-
mentation dependent; see the
$r command.
symbol A symbol is a sequence of uppercase or lowercase letters, underscores, or digits, not start-
ing with a digit. A backslash (\) can be used to escape other characters. The value of the
symbol is taken from the symbol table in objfil. An initial underscore (_
) is prefixed to
symbol, if needed.
_ symbol If the compiler prefixes _ to an external symbol, it may be necessary to cite this name to
distinguishit from a symbol generated in assembly language.
(exp) The value of the expression exp.
The following are monadic operators:
*exp The contents of the location addressed by exp in corfil.
@ exp The contents of the location addressed by exp in objfil.
-exp Integer negation.
~exp Bitwise complement.
The following dyadic operators are left associative and are less binding than monadic operators:
e1+e2 Integer addition.
e1-e2 Integer subtraction.
e1*e2 Integer multiplication.
e1%e2 Integer division.
e1&e2 Bitwise conjunction.
e1|e2 Bitwise disjunction.
e1#e2 e1 rounded up to the next multiple of e2.
Commands
Most commands consist of an action character followed by a modifier or list of modifiers. The following
action characters can take format specifiers. (The action characters ? and / can be followed by *; see
Addresses for further details.)
?f Locations starting at address in objfil are printed according to the format f. dot is incre-
mented by the sum of the increments for each format letter. If a subprocess has been ini-
tiated, address references a location in the address space of the subprocess instead of
Section 1−−4 − 2 − HP-UX Release 11i: December 2000
___
___