HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)
a
adb(1) adb(1)
v Print the value of all variables.
m Print the address map. This includes both the initial and default maps for a valid
corefile with an indication of which is currently active.
z Print a list of signals and how they are handled for the current subprocess.
zt Print a list of signals, their associated flags, and how they are handled for the current
thread.
k Print all DLKM modules or shared libraries.
n [ nodenumber ]
Without arguments print node information on a CCNUMA machine. With a
nodenumber argument, change to that node.
p traditional_cmd
This keyword command takes a traditional command as argument and interprets it.
a var value Assign value to
adb
variable var.
pa Virtual_Offset
Prints the physical address for a given Virtual Offset in HEX format. Space ID is
taken from the adb variable space. You can set the adb variable space using the key-
word command a explained earlier.
The following commands can run only in backward compatibility mode.
newline Print the process ID and register values.
M Toggle the address mapping of memfile between the initial map set up or a valid
memory file and the default mapping pair which the user can modify with the file
action modifier >. If the memory file was invalid, only the default mapping is avail-
able.
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.
F Print double precision floating point registers.
R Print all registers.
U Print unwind tables.
Format String
A format string is used to specify the formatting to be done before data is printed by
adb. There are
two types of format strings supported by
adb: traditional style and printf style. A traditional style
format string is a sequence of format specifiers.Aprintf-style format string is always preceded by a
comma (,) and enclosed within double quotes (""), and is a sequence of format specifiers and other char-
acters. Each format specifier should be preceded by a % character. Characters other than format
specifiers are printed as is. If needed, % should be escaped by %. It supports C language style \ charac-
ter escape sequences.
While processing a format string,
adb scans the format string from left to right and applies each conver-
sion specifier encountered to the object addressed by the sum of dot and dotincr. After each
conversion specifier is processed, dotincr is incremented by count times size (implicit or explicit) of
that conversion specifier. If the format string is used to print the value of dot (using action =), dot
and dotincr remain unchanged. For dotincr operator, dotincr is updated appropriately.
In backward compatibility mode, only the traditional style format string is supported.
Format Specifier
A format specifier can be a conversion specifier or a dot operator.
1. Conversion Specifier
Each conversion specifier consists of an optional count or pspec followed by an optional size specifier char-
acter, followed by a conversion specifier character .
count This is available only for the traditional style format string. The count specifies the number of
times this conversion specifier is to be repeated. If not specified, count is assumed to be 1.
Section 1−−10 Hewlett-Packard Company − 8 − HP-UX 11i Version 2: August 2003