HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nadb(1) nadb(1)
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 nadb 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
nadb 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 nadb. 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, nadb prints the address as
symbol_name+offset, else the address is printed. Initial value is 0xffffffff.
macropath List of directories to be searched for nadb macros. Initial value is .:/usr/lib/adb
.
pager Pager command used by nadb. Initial value is more -c.
backcompat Set to 1 if nadb is in backward compatibility mode. Initial value depends on the host pro-
cessor.
EXTERNAL INFLUENCES
International Code Set Support
Single- and multi-byte character code sets are supported.
RETURN VALUE
nadb comments about inaccessible files, syntax errors, abnormal termination of commands, etc. Exit
status is 0 unless the last command failed or returned non-zero status.
AUTHOR
nadb was developed by HP.
FILES
a.out
core
/dev/mem
/dev/kmem
HP-UX 11i Version 1: September 2005 − 11 − Hewlett-Packard Company Section 1−−587