5.10.7. Setting default breakpoints

A default breakpoint is the simplest breakpoint that you can set. A default breakpoint does not have any condition qualifiers or actions, and so is always an unconditional breakpoint. To set a default breakpoint:

  1. Make sure line numbers are displayed (see Displaying line numbers).

    This is not necessary but might help you to follow the examples in this tutorial.

  2. Right-click in the first entry in the Memory pane, <NoAddr>, and select Set Start Address... from the Memory context menu.

  3. Enter a value as the start address for the area of interest, for example 0x8008.

  4. Click Set to confirm the setting and close the dialog box.

  5. Click on the Src tab in the File Editor pane.

  6. Set a default breakpoint at line 149 in dhry_1.c, Proc_5();. To do this double-click on the line number.

    If the line number is not visible, then double-click inside the gray area at the left of the required statement in the File Editor pane to set the breakpoint.

    Because the breakpoint location is in RAM, RealView Debugger sets an unconditional software breakpoint.

  7. Set a watch on the variable Int_1_Loc at line 152 in dhry_1.c. To do this right-click on the variable. The variable is then underlined in red.

  8. Select Watch from the context menu.

  9. Click the Run button to start execution.

  10. Enter the required number of runs, for example 20000.

  11. Monitor execution until the breakpoint is reached.

  12. Click the Run button again and monitor the program as execution continues.

  13. Double-click on the red breakpoint indicator to clear the breakpoint.

See the chapter that describes working with breakpoints in the RealView Debugger v1.8 User Guide for more details.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0181G