Stepping and Breakpoints
In TotalView, breakpoints are just a type of action point, and there are four types:
A
breakpoint stops execution of processes and threads that reach it.
An
eval point executes a code fragment when it is reached.
A
watchpoint monitors a location in memory and stops execution when it changes (
Setting Watchpoints).
You can set action points in your program by selecting the boxed line numbers in the Source Code pane of a Process window. A boxed line number indicates that the line generates executable code. A
icon appears at the line number to indicate that a breakpoint is set on the line. Selecting the
icon clears the breakpoint.
When a program reaches a breakpoint, it stops. You can resume or otherwise control program execution in any of the following ways:
Use the set program counter command to resume program execution at a specific source line, machine instruction, or absolute hexadecimal value. See
Setting the Program Counter.
Set conditional breakpoints that cause a program to stop after it evaluates a condition that you define, for example, “stop when a value is less than eight.” See
Setting Eval Points.