Quick-start Tutorial

9.Click OK to close the Set Address/Data Break/Tracepoint dialog box. The code view is updated and a yellow disc appears to show that a conditional breakpoint has been set. The Cmd tab, in the Output pane, shows the RealView Debugger command used to set the breakpoint.

10.Click the Go button on the toolbar to execute the image. When the breakpoint is reached, execution stops and RealView Debugger displays a message in the Cmd tab of the Output pane to identify the point in the source code where the program stopped.

11.Click Go again to complete execution.

If you try to set a breakpoint on a non-executable line, RealView Debugger looks for the first executable line immediately following and places the breakpoint there. If the lines preceding the breakpointed instruction are comments, declarations, or other non-executable code, they are marked with black, downward pointing arrows. Lines marked in this way are regarded as part of the breakpoint. You cannot place two unconditional breakpoints on the same line, or on lines marked by the downward pointing arrows.

Managing breakpoints

To display the current breakpoint details:

1.Select View Pane Views Break/Tracepoints Pane from the default Code window to display the Break/Tracepoints pane, shown in Figure 4-13.

Figure 4-13 Break/Tracepoints pane

This shows the conditional breakpoint you set previously, the address, and the RealView Debugger command used to create it. The check box is selected to show that the breakpoint is enabled.

2.Right-click anywhere on the breakpoint entry, in the Break/Tracepoints pane, to display the Break/Tracepoints menu.

From here, you can examine the breakpoint, edit or copy it, or disable it so that it is ignored the next time the program runs.

ARM DUI 0181B

Copyright © 2002 ARM Limited. All rights reserved.

4-25

Page 67
Image 67
ARM Version 1.6 manual Managing breakpoints, Break/Tracepoints pane