Native Inspect Manual (H06.13+, J06.03+)
attach Command
Associates Native Inspect with a specified process that must be executing in the same CPU as the
Native Inspect process. The attach command enables you to debug a running process using
Native Inspect.
attach [pin] | [$process-name]
Where:
pin
The process ID (process number) of the process you want to attach. The command fails if you
specify an invalid or nonexistent pin. To attach to a running OSS process, you must use its
Guardian process ID.
$process-name
The name of the process or process-pair you want to attach. The command fails if you specify
an invalid or nonexistent process name. For process-pairs, Native Inspect attaches to either
the primary or backup process of a process-pair depending on the CPU in which the Native
Inspect process is being executed. To attach to the primary process of a process-pair, Native
Inspect must be running in the same CPU as the primary process. If the backup process is
executing in the same CPU as the Native Inspect process, Native Inspect prompts you for
confirmation before attaching to the backup process.
The attach command issues a PROCESS_DEBUG_ request for the specified process, and Native
Inspect then waits for the next debugging event. (When privileged debugging is enabled, the
attach command specifies the DEBUGNOW option.)
Then when the process enters debug, Native Inspect receives the debugging event, creates a
session for the process (adding the process to the set of processes being debugged), and makes
the process the current process.
If a debugging event occurs for another process when Native Inspect is waiting (that is, between
the time you enter the attach command and when the specified process enters debug), that other
process then becomes the current process.
Example
See Example of Using Multiple Instances of Native Inspect (page 26).
base Command
A Debug-compatible Tcl command that sets the default base for numeric input and output.
The base command is an alias for the set command with the radix, input-radix, and
output-radix options. See set Command (environment)
base {input|output} {HEX|OCT|DEC}
Where:
input
Sets the base used for numeric input.
output
Sets the base used for numeric output.
HEX
Sets the base in hexadecimal.
OCT
sets the base in octal.
DEC
Sets the base in decimal.
66 Native Inspect Command Syntax










