11.14.2. Setting a breakpoint at the destination of a branch instruction

To set a breakpoint on the destination of a branch instruction:

  1. Connect to a suitable target.

  2. Load the image to the target.

  3. Click the Disassembly tab to show the disassembly view.

  4. Locate the required branch instruction in the Disassembly tab.

  5. Right-click on the destination address specified in the branch instruction to display the context menu.

  6. Select Create Breakpoint... from the context menu. The Create Breakpoint dialog box is displayed.

  7. Enter the destination address for the branch instruction in the Location field. For example, enter Proc_7.

  8. Click OK. A breakpoint is set on the instruction at the specified branch address (0x8F90 in this example).

    The Break/Tracepoints view is updated with the new breakpoint (if visible) and the Output view shows the breakpoint command:

    binstr Proc_7
    
  9. To see the breakpoint at the branch destination:

    1. Right-click on the destination address again to display the context menu.

    2. Select Locate Address... in the context menu.

    3. Click Set. The location of the branch destination is displayed. Figure 11.23 shows an example.

      Figure 11.23. Setting an unconditional breakpoint on an instruction

      Setting an unconditional breakpoint on an instruction

As with the source-level view, RealView Debugger sets a software or hardware breakpoint depending on where your program is stored and what breakpoints are available.

See also

Copyright © 2002-2009 ARM Limited. All rights reserved.ARM DUI 0153K
Non-Confidential