8.4.3. Stepping over function calls

To step without entering called functions:

  1. Connect to your target.

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

  3. Click the Locate PC button on the Debug toolbar to view the source file that contains the PC scope (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 Step by line or instruction over functions button once. A red box shows the location of the PC at line 150. The Proc_5 function has been stepped over.

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

    The red box moves to the next line of code each time you click the button, without entering any called functions, even when the line of source comprises several instructions.

See also

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