11.13. Setting breakpoints by dragging and dropping

You can set breakpoints by dragging and dropping program items from your source code onto the Break/Tracepoints view.

To set a breakpoint by dragging and dropping a program item:

  1. Select View → Break/Tracepoints from the Code window main menu to open the Break/Tracepoints view. Figure 11.18 shows an example:

    Figure 11.18. Break/tracepoint view

    Break/tracepoint view

  2. Locate the program item in your source code, such as a function call. Figure 11.19 shows an example source code view for the dhrystone.axf image.

    Figure 11.19. Source code view

    Source code view

  3. Double-click on the program item to highlight it. In the example shown in Figure 11.19, double-click on the Proc_1 function name.

  4. Drag the item and drop it onto the Break/Tracepoints view. The breakpoint type selection dialog box is opened. Figure 11.20 shows an example:

    Figure 11.20. Breakpoint type selection dialog box

    Breakpoint type selection dialog box

  5. Select the breakpoint type you want to set. The available options depend on the target:

    • Break if X... displays the Simple Break if X dialog box

    • Break if X, N Times... displays the Simple Break if X, N Times dialog box

    • Break if X, when Y is True... displays the Simple Break if X, when Y is True dialog box

    • HW Break if in Range... displays the HW Break if in Range dialog box

    • HW While in func/range, Break if X... displays the HW While in func/range, Break if X dialog box

    • HW Break if X, then if Y... displays the HW Break if X, then if Y dialog box.

    • HW Break on Data Value match... displays the HW Break on Data Value match dialog box.

    In this example, leave the default type selected, that is Break if X....

  6. In the dialog box that is open, modify the breakpoint parameters as required. In this example, change the type of breakpoint from HW Instr to SW Instr in the Simple Break if X dialog box.

  7. Click OK to set the breakpoint and close the dialog box.

    In this example, a software breakpoint is set at the start of the function Proc_1.

See also:

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