HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

a
adb(1) adb(1)
a 0 The value of dot is printed in symbolic form.
p n The object is printed in symbolic form. The value of n is machine-dependent.
For example:
main=ba, ’a’=c, main?10box
2. Dot Operator
A dot operator consists of an optional count followed by a dot operator character.
count Same as that of count of conversion specifier.
Dot operator character
A dot operator character is one of these:
^ dotincr
is decreased by count times size corresponding to the previous conversion
specifier character.
+ dotincr
is increased by count.
- dotincr
is decreased by count.
For example:
10=-, 10=2-, 10=5o4ˆ
3. Spacing specifier
A spacing specifier consists of an optional count or an optional tabstop followed by a spacing specifier
character.
count Same as that of count of conversion specifier.
tabstop
Same as that of count of conversion specifier. However, it is used only with the t spacing
specifier. If no value is mentioned, it is assumed to be 1.
spacing specifier character
A spacing specifier character can be one of these:
t Move to the next tab stop appropriate for tabstop. For example, 8t moves to the next 8-
space tab stop.
r Print a space.
n Print a newline character.
For example: 10=2o2t2o, 10=2o2r2o, 10=2o2n2o
4. Literal String
A literal string is any number of characters enclosed within double quotes ("").
For example: 10="in octal "ot"in hex "x
Address Maps
In files like object files and application core files, the virtual memory address is the not the same as the file
offset. So adb keeps an array of address maps for these files to map a given virtual memory address to a
file offset. Each address map is a triple: start virtual address (b), end virtual address (e) and start file
offset (f). The triple specifies that all addresses from b to e - 1 occupy a contiguous region in the file starting
at f. Given a virtual address a such that b a< e, the file offset of a can be computed as f+ a- b.
State variables
There are several variables which define the state of
adb at any instant in time. They are:
dot Current address. Initial value is 0.
dotincr Current address increment. Initial value is 0.
prompt Prompt string used by adb. Initial value is ‘‘adb> ’’.
radix The current input radix. Initial value is as in the assembly language of the target proces-
sor.
maxwidth The maximum width of the display. Initial value is 80.
maxoffset If an address is within this limit from a known symbol, adb prints the address as
symbol_name+offset, else the address is printed. Initial value is 0xffffffff.
HP-UX 11i Version 2: December 2007 Update 11 Hewlett-Packard Company 39