3.4.6. Stepping through an image

To follow the execution of a program more closely than breakpoints or watchpoints allow, you can step through the code in the following ways:

Step to the next line of code

Step to the the next line of code in either of the following ways:

  • select Step from the Execute menu

  • click the Step button.

The program moves to the next line of code, which is highlighted in the Execution window. Function calls are treated as one statement.

If only C code is displayed, Step moves to the next line of C. If disassembled code is shown (possibly interleaved with C source), Step moves to the next line of disassembled code.

Step in to a function call

Step in to a function call in either of the following ways:

  • select Step In from the Execute menu

  • click the Step In button.

The program moves to the next line of code. If the code is in a called function, the function source appears in the Execution window, with the current line highlighted.

Step out of a function

Step out of a function in either of the following ways:

  • select Step Out from the Execute menu

  • click the Step Out button.

The program completes execution of the function and halts at the line immediately following the function call.

Run execution to the cursor

Follow these steps to execute your program to a specific line in the source code:

  1. Position the cursor in the line where execution should stop.

  2. Select Run to Cursor from the Execute menu or

    click the Run to Cursor button.

This executes the code between the current execution and the position of the cursor.

Note

Be sure that the execution path includes the statement selected with the cursor.

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential