TotalView User Guide : Part V: Debugging : Setting Action Points : Defining Eval Points and Conditional Breakpoints : Patching Programs : Adding a Function Call

Adding a Function Call
The example in the previous section routed around the problem. If all you wanted to do was monitor the value of the global_error variable, you can add a printf() function call that displays its value. For example, the following might be the eval point to add to line 4:
printf ("global_error is %d\n", global_error);
TotalView executes this code fragment before the code on line 4; that is, this line executes before global_error is set to 0.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com