File Editor pane - Src tab

Use this pane to display and debug source code, and to edit your source file if required. Use the Debug menu or the command buttons to invoke the debugger commands. The commands, messages, and results are displayed in the Output pane.

When you load an image, RealView Debugger opens the source file in the File Editor pane and draws a red box around the location of the Program Counter (PC). If the PC is at the entry point, the red box is drawn around main (). This marks the point to which a STEP instruction will go. Click the Src tab to display the source-level view showing the location of the PC.

image\lamp.gifIf you force scope, the red box shows current context, which is not necessarily the location of the PC.

Each line of source-level code might require more than one assembly instruction. It is unlikely therefore that the source-level and assembly-level areas correspond exactly. When you switch between modes, the highlighted line in the code area corresponds to the same execution point in each mode.

image\lamp.gifIf Tooltip Evaluation is enabled, you can evaluate variables and registers by hovering your mouse pointer above them in the code. If it is possible to evaluate them, a tooltip is displayed with the name of the object and its value. This option is selected by default, and you can turn it on or off from the Advanced option of the Code Window Edit menu.

There are four different context menus available, depending on where you right-click:

Right-click on a source line, or at the left of the pane.

Click the following links to see pop-up descriptions of the options:

Set Break (double click)

Set Break All Threads

Go to Here

Scope to Here

Show Disassembly/Source at this Location

Set HSD Break

Set System Break

Set Process Break

Set Thread Break

Set Break…

Set Break If…

Set/Toggle Tracepoint...

Set Detailed Tracepoint...

Set Trace Range

Break Info…

Patch Asm Interactive...

Set PC to here

Right-click on a function name.

Click the following links to see pop-up descriptions of the options:

Scope To (double right-click)

Set Break On

Go To

Print Type

Cexpression

Set Break…

Set Break If…

Set Break on Statement

Cut

Copy

Paste

Right-click anywhere else in the source code.

Click the following links to see pop-up descriptions of the options:

Print (double right-click)

Print Type

Print Values in Hex

Print*

Print &

Watch

Set New Value…

Set to 0

Increment

Decrement

Set Break…

Set Break If…

Set Break on Statement

Scope To

Set Instr Break

View Memory at Value

View Memory at Address

Cut

Copy

Paste

 

Right-click on the white space area.

Click the following links to see pop-up descriptions of the options:

Scope to PC (double right-click)

Scope Up Stack

Scope Down Stack

Show Context

Mode Switch

View from Location…

Set Disassembly Format...

Set Break on Statement

Clear Output

Show Previous Line/Address

Previous Line/Addr List…

Cut

Copy

Paste