4.4.2. Using the Execution Control menu

The Debug menu enables you to define the execution path using the Execution Control menu, shown in Figure 4.2. In most cases, you use the menu options in combination with other debugging tools such as breakpoints.

Figure 4.2. Execution Control menu

Execution Control menu

The Execution Control menu options are grouped according to their impact on the execution path:

Reset Target Processor

Performs a processor reset operation on the current connection.

The reset might be hard or soft depending on the processor type, see your processor hardware documentation for details.

Go (Start Execution)

With an image loaded to the target processor, select this option to run the program, starting from the current location of the PC.

Go to Cursor

With an image loaded, you can scroll down the listing and position the cursor on a specific line. Select Go to Cursor to execute the program up to the temporary breakpoint at the cursor, assuming that no halting condition occurs first.

If you select the Src tab, the line marked by the cursor is enclosed in a red box indicating the position of the PC.

Click Go, or use a Step control, to resume execution.

Go until Return

Select this option to run from the current PC until control returns from the current function.

Selecting this option stops execution at the assembler instruction immediately after the return, and not the next statement. If you select the Src tab, this has the effect that the red box indicating the position of the PC might be still located at the function call.

Step Into

Steps execution, by lines of source code or assembler instructions, into functions. This behavior depends on the current code view, that is whether you have selected the Src tab or the Dsm tab.

Step Over (next)

Steps execution, by lines of source code or assembler instructions, over functions. This behavior depends on the current code view, that is whether you have selected the Src tab or the Dsm tab.

Step Until Condition...

Displays a prompt where you can specify a condition, in the form of an expression. When the condition is met, that is the condition is nonzero, execution halts.

Click OK to run in single steps from the current location of the PC. RealView Debugger checks the condition after each step.

Using this option causes execution to slow down and might result in errors because of timing issues.

Stop Execution

Select this option to stop the program currently executing on the target processor.

Show Line at PC

Select this option to report the current module and procedure scope.

Show Context of PC

Select this option to report the current context showing the current root, module, procedure, and line.

Toggle Source/Disassembly

Select this option to toggle between the source-level view and the disassembly-level view in the File Editor pane.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential