Attaching Using File > New Program

To attach to a process by using the Root Window's File > New Program command, follow these steps: 

  1. Use the ps shell command to obtain the process ID (PID) of the process.
     
  2. Select the File > New Program command. TotalView displays the following dialog box.

    File > New Program Dialog Box

    Enter a file name in the Executable field. This name can be a full or relative path name. If you supply a simple file name, TotalView searches for it in the directories specified with the File > Search Path command and specified by your PATH environment variable.

    Enter the process ID (PID) of the unattached process into the Process ID field.

  3. Select OK.

    If the executable is a multiprocess program, TotalView will ask if you want to attach to all relatives of the process. To examine all processes, select Yes.

    If the process has children that call execve(), TotalView tries to determine each child's executable. If TotalView cannot determine the executable, you must delete (kill) the parent process and start it again using TotalView.

    Finally, a Process Window appears. The right arrow points to the current program counter (PC), which is where the program was executing when TotalView attached to it.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0