C/C++ editor

This editor enables you to:

Figure 25. C/C++ editor

C/C++ editor

In the left-hand margin of each editor tab you can find a marker bar that displays view markers associated with specific lines in the source code.

To set a breakpoint, double click in the marker bar at the position where you want to set the breakpoint. To delete a breakpoint, double-click on the breakpoint marker.

Note

If you have sub-breakpoints to a parent breakpoint then double-clicking on the marker also deletes the related sub-breakpoints.

Show/hideAction context menu options

Right-click in the marker bar, or the line number column if visible, to display the action context menu for the C/C++ editor. The options available include:

DS-5 Breakpoints menu

The following breakpoint options are available:

Toggle Breakpoint

Set or remove a breakpoint at the selected address.

Toggle Hardware Breakpoint

Set or remove a hardware breakpoint at the selected address.

Resolve Breakpoint

resolve a pending breakpoint at the selected address.

Enable Breakpoint

Enable the breakpoint at the selected address.

Disable Breakpoint

Disable the breakpoint at the selected address.

Breakpoint Properties...

Display the Breakpoint Properties dialog box for the selected breakpoint. This enables you to control breakpoint activation.

Default Breakpoint Type

The default type causes the top-level context menu entry, Toggle Breakpoint and the double-click action in the marker bar to toggle either CDT Breakpoints or DS-5 Breakpoints. When using DS-5 Debugger you must select DS-5 C/C++ Breakpoint. DS-5 breakpoint markers are red to distinguish them from the blue CDT breakpoint markers.

Show Line Numbers

Show or hide line numbers.

For more information on the other options not listed here, see the dynamic help.

Show/hideEditor context menu

Right-click on any line of source to display the editor context menu for the C/C++ editor. The following options are enabled when you connect to a target:

Set PC to Selection

Set the PC to the address of the selected source line.

Run to Selection

Run to the selected source line.

Show disassembly

This option:

  1. Opens a new instance of the Disassembly view.

  2. Highlights the addresses and instructions associated with the selected source line. A vertical bar and shaded highlight shows the related disassembly.

    Figure 26. Show disassembly for selected source line

    Show disassembly for selected source line

For more information on the other options not listed here, see the dynamic help.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446D
Non-ConfidentialID011411