Watchpoints are created by using either the Action Points> Create Watchpoint command in the Process Window or the
Tools > Create Watchpoint Dialog Box. (If your platform doesn’t support watchpoints, TotalView dims this menu item.) Here are some things you should know:
If you set a watchpoint on a stack variable, TotalView that lets you know 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.
After you select a Create Watchpoint command, TotalView displays its Watchpoint Properties dialog box.
Controls in this dialog box let you create unconditional and conditional watchpoints. When you set a watchpoint, you are setting it on the complete contents of the information being displayed in the Variable Window. For example, if the Variable Window displays an array, you can only set a watchpoint on the entire array (or as many bytes as TotalView can watch.) If you only want to watch one array element, dive on the element and then set the watchpoint. Similarly, if the Variable Window displays a structure and you only want to watch one element, dive on the element before you set the watchpoint.
See the online Help for information on the fields in this dialog box.