Stepping through an application

The debugger enables you to finely control the execution of an image by sequentially stepping through an application at the source level or the instruction level.

Note

You must compile your code with debug information to use the source level stepping commands. By default, source level calls to functions with no debug information are stepped over. You can use the set step-mode command to change the default setting. You can enter debugger commands in the Commands view.

There are several ways to step through an application. You can choose to step:

Be aware that when stepping at the source level, the debugger uses temporary breakpoints to stop execution at the specified location. These temporary breakpoints might require the use of hardware breakpoints, especially when stepping through code in ROM or Flash. If there are not enough hardware breakpoint resources available, then the debugger displays an error message.

In Eclipse, you can use the stepping toolbar in the Debug Control view to step through the application either by source line or instruction.

Figure 4. Debug Control view

Debug Control view

Show/hideSee also

Copyright © 2010 ARM. All rights reserved.ARM DUI 0446A
Non-ConfidentialID070310