8.5.3. Low-level stepping over function calls

To step assembly instructions without entering called functions:

  1. Connect to your target.

  2. Load the required image, for example dhrystone.axf.

  3. Locate the instruction in the Disassembly tab where you want to start stepping. You can either:

    • Scroll through the disassembly view in the Disassembly tab to locate the instruction.

    • Find an instruction corresponding to a line of code in a source file (dhry_1.c in this example).

  4. Display line 149.

  5. Click on the Proc_5 function name.

  6. Select Debug → Run to Cursor from the Code window main menu. The program begins execution.

  7. When prompted for the number of runs, enter 1000. The program continues execution and runs to the position of the cursor in the source code. A red box shows the location of the PC at line 149.

  8. Click the Disassembly tab. The code view changes to the Disassembly tab, and the assembly instruction where the breakpoint is set is displayed. A red box shows the location of the PC (address 0x8480 in this example).

  9. Click the Step by line or instruction over functions button once. A red box shows the location of the PC at address 0x8484. The Proc_5 function has been stepped over.

  10. Click Step by line or instruction over functions several more times, until you are familiar with the operation of this control.

See also

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