5.2.1. Viewing the disassembly corresponding to the selected line of source

To view the disassembly corresponding to the selected line of source:

  1. Connect to your target.

  2. Load an image, for example dhrystone.axf. The source file containing the image entry point is opened.

  3. In the source code view, locate the required line of source.

    For the dhrystone.axf example:

    1. Scroll down to line 149.

    2. Right-click on Proc_5 to display the context menu.

    3. Select Locate Line... from the context menu.

    4. Click Set in the dialog box. The first line of code in Proc_5() is located (line 378).

  4. Right-click on the required line of code to display the context menu (line 378 in this example).

  5. Select Locate Disassembly from the context menu. The code view changes to the Disassembly tab, with the corresponding instruction highlighted.

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