| |||
| Home > Customizing Projects > 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
contains two groups for breakpoints:
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.
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.
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:
Select Project ? Project Properties... to display the Project Properties window.
Select the *SETTINGS group in
the List of Entries pane, the left pane.
Right-click on the Named_Breaks group
in the Settings Values pane, the right pane, and select Explore from
the context menu.
Right-click on the Default group
in the Settings Values pane, and select Make Copy... from
the context menu.
Enter a new name for the group, for example My_breakpoints,
and click Create.
Right-click on the My_breakpoints group
in the Settings Values pane, and select Explore from
the context menu.
Right-click on the Cmd setting,
in the Settings Values pane, and select Edit Value from
the context menu.
Type bi \DHRY_1\#149:5 and then
press Enter to confirm the value.
This identifies a software breakpoint on the chosen instruction.
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.
Type My test breakpoint and then
press Enter to confirm the value.
This text identifies the named breakpoint.
Create a new group, for example My_test_breakpoints,
and set up a second named breakpoint if required.
Select File ? Save and Close to regenerate the makefile(s) for the project, and close the Project Properties window.
Select Tools ? Build... to rebuild the application.
Connect to your target and load the newly-built
image dhrystone.axf.
Click on the Src tab to view
the source file dhry_1.c.
Select Debug ? Simple Breakpoints ? Named... to display the list selection box, shown in Figure 6.9.
This box lists the named breakpoints you previously set up for the project. 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.
Specifying breakpoints in this way can also be applied to an auto-project.