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

a
adb(1) adb(1)
d [ radix ] Set the default radix to radix.
In backward compatibility mode, this command has a non-standard deprecated behavior.
If radix is not mentioned, address is taken as radix.
x The default radix for all integers input is set to hexadecimal.
q Quit adb.
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 keyword com-
mand 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 available.
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 characters.
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 \ character 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 conver-
sion 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.
36 Hewlett-Packard Company 8 HP-UX 11i Version 2: December 2007 Update