HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
n
nadb(1) nadb(1)
Keyword Commands
Run the Keyword Command Form using the traditional command form by prefixing the command with
$.
Please refer to Keyword Form Commands for the complete list of keyword commands.
Process Commands
These commands deal with managing subprocesses.
nadb can run an object file as a subprocess Also, it
can adopt a subprocess given its pid.
nadb can debug multi-threaded and/or forked subprocesses. It can
also debug mutiple subprocesses at the same time. However, at any time it focuses on a one subprocess
and one of its threads called the current subprocess and current thread respectively.
The command consists of
: followed by the modifier and an optional list of arguments. They are:
r [ objfile ]Runobjfile as a subprocess. If address is given explicitly, the program is entered at
this point; otherwise the program is entered at its standard entry point. The value
count specifies how many breakpoints are ignored before stopping. arguments to the
subprocess may be supplied on the same line as the command. Semicolon is not used
as a command separator. An argument starting with < or > causes the standard input
or output to be established for the command. All signals are turned on when entering
the subprocess. Such a subprocess is referred to as a created subprocess.
If there are other created subprocesses running, all are killed. It does not kill any
attached subprocesses. This becomes the current subprocess.
e [ objfile ] Set up a subprocess as in
:r; no instructions are executed.
a [ objfile ]Causesnadb to adopt process with pid as a traced subprocess. If the objfile is
specified,
nadb uses it to lookup symbol information. Count has same meaning as in
:r. Such a subprocess is referred to as an attached subprocess. This subprocess
becomes the current subprocess.
k [ pid | * ] Kills a created subprocess. If no argument is specified it kills the current subprocess.
If a pid is given, it kills the subprocess with that pid.if* is given, it kills all created
subprocesses.
The current subprocess is chosen from the remaining subprocesses.
de [ pid | * ] The arguments can be a pid or a
*
. Same as :k, however it applies to attached sub-
processes.
nadb detaches from them.
c [ signal ] Continues the current subprocess with signal signal. It continues all the threads of
the subprocess. If no signal is specified, the signal that caused it to stop is sent. If
address is specified, the current thread continues at this address. Breakpoint skip-
ping is the same as for
:r.
s [ signal | arg1 arg2 ... ]
Step the current thread count times. If address is given, then the thread continues at
that address, else from the address where it had stopped. If no signal is specified, the
signal that caused it to stop is sent. If there is no current subprocess, object file is run
as a subprocess as for
:r. In this case no signal can be sent; the remainder of the line
is treated as arguments to the subprocess.
b [ command ] Sets breakpoint at address in the current subprocess The breakpoint is executed
count-1 times before causing a stop. Each time the breakpoint is encountered, the
command is executed. This breakpoint is a subprocess breakpoint. If any of the
thread executes the instruction at this address, it will stop. Multiple breakpoints can
be set at the same address.
d [ num | * ] Deletes all breakpoints at address in the current subprocess, if it is specified. If * is
specified, it deletes all the current subprocess breakpoints. If num is specified, break-
point with number num is deleted.
en [ num | * ] Enables all breakpoints at address in the current subprocess, if it is specified. If
* is
specified, it enables all the current subprocess breakpoints. If num is specified, break-
point with number num is enabled.
di [ num | * ] Disables all breakpoints at address in the current subprocess, if it is specified. If
* is
specified, it disables all the current subprocess breakpoints. If num is specified,
breakpoint with number num is disabled.
HP-UX 11i Version 1: September 2005 − 5 − Hewlett-Packard Company Section 1−−581