5.6. Locating the destination of a branch instruction

You can locate the destination of a branch instruction.

To locate the destination of a branch instruction:

  1. Connect to your target.

  2. Load the required image, for example dhrystone.axf. The current scope is at the PC.

  3. Click the Disassembly tab to view the disassembly. Figure 5.6 shows an example.

    Figure 5.6. Disassembly view showing branch instructions

    Disassembly view showing branch instructions

  4. Right-click on the label of the branch instruction, to display the context menu. In the example shown in Figure 5.6, right-click on the __rt_entry label.

  5. Select Locate Address... from the context menu to display the Prompt dialog box together with the chosen label.

  6. Click Set. The disassembly view changes to show the location of the chosen label, at address 0x9ECC for this example. A blue bordered arrow identifies the location. Figure 5.7 shows an example.

    Figure 5.7. Navigated to branch destination

    Navigated to branch destination

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