Passes control of your terminal from the current process to
another process.
NOTE
This command is not available in the VSI DECwindows Motif for
OpenVMS user interface to the debugger.
Format
ATTACH process-name
1 – Parameters
process-name
Specifies the process to which your terminal is to be attached.
The process must already exist before you try to attach to it.
If the process name contains nonalphanumeric or space characters,
you must enclose it in quotation marks (").
2 – Description
The ATTACH command enables you to go back and forth between
a debugging session and your command interpreter, or between
two debugging sessions. To do so, you must first use the SPAWN
command to create a subprocess. You can then attach to it
whenever you want. To return to your original process with
minimal system overhead, use another ATTACH command.
Related command:
SPAWN
3 – Examples
1.DBG> SPAWN
$ ATTACH JONES
%DEBUG-I-RETURNED, control returned to process JONES
DBG> ATTACH JONES_1
$
In this example, the series of commands creates a subprocess
named
JONES_1 from the debugger (currently running in the process
JONES) and then attaches to that subprocess.
2.DBG> ATTACH "Alpha One"
$
This example illustrates using quotation marks to enclose a
process name that contains a space character.