4.11.2. Setting a simple breakpoint

To set a simple, unconditional breakpoint:

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

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

  2. Right-click in the first entry in the Memory pane, <NoAddr>, and select Set New Start Address... from the 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 simple, unconditional 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.

  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. Start execution (see Running the image)

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

  11. Monitor execution until the breakpoint is reached.

  12. Click Go again and monitor the program as execution continues.

See the chapter on working with breakpoints in the RealView Developer Kit v2.2 Debugger User Guide for more details.

Copyright © 2005, 2006 ARM Limited. All rights reserved.ARM DUI 0276B
Non-Confidential