12.8.16. Specifying breakpoints

Projects enable you to control an application that you are debugging. You can include image load commands and set breakpoints that are stored as part of the project. The SETTINGS group includes two groups for breakpoints:

Auto_Set_Breaks

Set as soon as a symbol is matched. If there is no symbol specified, these are set on any load. These breakpoints appear in the Break/Tracepoints pane in the usual way.

Named_Breaks

Breakpoints that you want to set often. Enables you to set breakpoints that are specific to the application, to an RTOS, or to a library.

Note

The steps for adding Auto_Set_Breaks and Named_Breaks are identical, except that for Auto_Set_Breaks you can choose to have RealView Debugger prompt you before setting the breakpoint. The steps in this section describe setting Named_Breaks.

To add named breakpoints:

  1. Select Project → Project Properties... to display the Project Properties window.

  2. Select the *SETTINGS group in the List of Entries pane.

  3. Right-click on the Named_Breaks group in the Settings Values pane, and select Explore from the context menu.

  4. Right-click on the Default group in the Settings Values pane, and select Make Copy... from the context menu.

  5. Enter a new name for the group, for example My_breakpoints, and click Create.

  6. Right-click on the My_breakpoints group in the Settings Values pane, and select Explore from the context menu.

  7. Right-click on the Cmd setting, in the Settings Values pane, and select Edit Value from the context menu.

  8. Type bi \DHRY_1\#149:5 and then press Enter to confirm the value.

    This identifies a software breakpoint on the chosen instruction.

  9. Right-click on the Description setting, in the Settings Values pane, and select Edit Value from the context men.

    The text entered here appears in the list selection box to identify the named breakpoint.

  10. Type My test breakpoint and then press Enter to confirm the value.

    This text identifies the named breakpoint.

  11. Create a new group, for example My_test_breakpoints, and set up a second named breakpoint if required.

  12. Select File → Save and Close to regenerate the makefile(s) for the project, and close the Project Properties window.

  13. Select Tools → Build... to rebuild the application.

  14. Connect to your target and load the newly-built image dhrystone.axf.

  15. Click on the Src tab to view the source file dhry_1.c.

  16. Select Debug → Simple Breakpoints → Named... to display the list selection box. This box lists the named breakpoints you previously set up. Select the breakpoints you want to set, then click OK. These breakpoints are also available when you next open the project.

When you select breakpoints from the Named Breakpoints list, they appear in the Break/Tracepoints pane in the usual way.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential