Chapter 9 Controlling fork, vfork, and execve Handling
The exec_handling and fork_handling Command Options and State Variables
TotalView allows you to control how the debugger handles system calls to execve(), fork(), vfork(), and clone() (when used without the CLONE_VM flag).
• When calling fork(), vfork(), and clone(), choose to either attach or detach from the new child process.
• When calling execve(), choose either to continue the new process, halt it, or ask what action to take.
This behavior is controlled by two CLI state variables and two command options. Set the state variables to control the default behavior for TotalView. Use the command options when starting TotalView to control the behavior for a particular debugging session. The command options override the state variable settings.
The lists exec-handling-list and fork-handling-list are Tcl lists of regexp and action pairs. Each regexp is matched against the process's name to find a matching action, which determines how to handle the exec or fork event.