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 Run to Cursor on the Debug 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 Next button once. A red box shows the location of the PC at address 0x8484. The Proc_5 function has been stepped over.

  10. Click Next several more times, until you are familiar with the operation of this control.

See also

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