TotalView : TotalView User Guide : PART III Parallel Debugging : Controlling fork, vfork, and execve Handling : The exec_handling and fork_handling Command Options and State Variables
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.
 
Table 9: exec_handling and fork_handling Command Options and State Variables
Command Options
CLI State Variables
-exec_handling exec-handling-list
TV::exec_handling exec-handling-list
-fork_handling fork-handling-list
TV::fork_handling fork-handling-list
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.
 
RELATED TOPICS 
 
The state variables
TV::exec_handling exec-handling-list and TV::fork_handling fork-handling-list
totalview command options
-exec_handling exec-handling-list and -fork_handling fork-handling-list
Setting breakpoints when using fork() and execve()
Linking with the dbfork library