11.10. Copying a breakpoint

By copying a breakpoint, you can create a new breakpoint based on the properties of an existing breakpoint.


You cannot copy a breakpoint that is part of a breakpoint chain. If you do, RealView Debugger displays the following error message:

Error: This breakpoint cannot be edited, or copied, as it is chained to another breakpoint.

To copy a breakpoint:

  1. Select View → Break/Tracepoints from the Code window main menu to open the Break/Tracepoints view, if it is not already visible. Figure 11.13 shows an example:

    Figure 11.13. Breakpoint in the Break/Tracepoints view

    Breakpoint in the Break/Tracepoints view

  2. Right-click on the breakpoint you want to copy to display the context menu.

  3. Select Edit... from the context menu to open the Edit Breakpoint dialog box. Figure 11.14 shows an example:

    Figure 11.14. Edit Breakpoint dialog box

    Edit Breakpoint dialog box

  4. Change either the Breakpoint Type or the Location of the breakpoint.

    For this example, change the Location to Proc_5, to set a new breakpoint at the first location of the Proc_5 function.

  5. Make any other changes to the breakpoint that you require. You can:

    • Change the Breakpoint Type.

    • Specify a data value to match against if you selected one of the hardware access types.

    • Force the size of a software breakpoint.

      When you select Force Breakpoint Size (bits), the entry field is enabled for you to specify the size in bits. Normally, the breakpoint size is selected automatically using the debug information that is currently loaded on the target. However, if you are trying to set a Thumb breakpoint on a target where there is no debug information available, you must use this option to force the breakpoint size.


      This option is disabled for hardware breakpoints.

    • Click More... to display conditions and actions that you can assign.

  6. Click OK to set the breakpoint. A prompt dialog box is opened to ask if you want to replace the current breakpoint.

  7. Click No to keep the existing breakpoint, and set a new breakpoint.

See also:

Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N