Creating Watchpoints
Create a watchpoint in these ways:
*From the Local Variable view or the Data view by selecting the variable expression, right-clicking to view the context menu, and selecting Create Watchpoint.
*From the Action Points menu and then selecting Create Watchpoint.
Because TotalView cannot determine where to set the expression when using this option, it displays a dialog box into which you type the variable’s name.
Note: If your platform doesn’t support watchpoints, TotalView does not display the option.
After you enter the name of the variable and click on Create Watchpoint, TotalView creates a watchpoint that stops all running threads in all processes in the group when the watchpoint triggers. If you wish to create a watchpoint that stops all running threads in a process or evaluates an expression when the watchpoint triggers, you must modify the watchpoint after you create it. See Modifying Watchpoints for information on modifying watchpoints.
If you set a watchpoint on a stack variable, TotalView reports that you’re trying to set a watchpoint on “non-global” memory. For example, the variable is on the stack or in a block and the variable will no longer exist when the stack is popped or control leaves the block. In either of these cases, it is likely that your program will overwrite the memory, and the watchpoint will no longer be meaningful. See Watching Memory for more information.