Basic Debugging
This chapter illustrates some basic debugging tasks and is based on the shipped program, wave_extended, located in the directory installdir/toolworks/totalview.version/platform/examples. This is a simple program that creates an array and then increments its values to simulate a wave form which can then be viewed using the Visualizer. The program requires user input to provide the number of times to increment.
The first steps when debugging programs with TotalView are similar to those using other debuggers:
Use the
-g option to compile the program. (Compiling is not discussed here. Please see
“Compiling Programs”.)
Start the program under TotalView control.
Start the debugging process, including setting breakpoints and examining your program’s data.
The chapter introduces some of TotalView’s primary tools, as follows: