You copied the Doc URL to your clipboard.

Variables view

This section describes the Variables debug view.

Variables are displayed in these windows:

Local Variables window

This window shows all local variables and parameters that are valid for the current PC value, with their type and value.

  • A blue letter L before the variable name indicates a local variable.

  • A green letter P indicates a parameter.

Figure 2-34 Local Variable view

Local Variable view

Global Variables window

This window shows the global variables with their types and values. A green letter G marks them.

Figure 2-35 Global Variable view

Global Variable view

Complex values such as structs and arrays or pointers can be expanded by clicking the small cross before the variable name.

Note

To use the variables windows, the loaded application must be an ELF file that contains .debug_info and .debug_abbrev sections. No other type of debug information is supported for this view. The .debug_info section must contain valid DWARF debug information that matches the DWARF 2 or DWARF 3 specification. The model must provide a PC register to enable locating local variables.

For applications that have more than one compilation unit, the units are only loaded when the PC reaches the respective context.

The loading of these compilation units can be triggered manually by selecting Load Debug Info for Module from the Debug menu. Right-click on one of the variables windows and select Load Debug Info for Module.

The displayed dialog box lists the compilation units that can be loaded.

Context menu for the Variable view

To display the context menu, right click one of the items in the Global or Local Variable view. The menu has these options:

Copy

Copy the contents of the selected variable.

Add to Watch

Add the selected variable to the Watch view.

Insert Breakpoint

Insert a breakpoint on the selected variable.

Enable Breakpoint

Enable the breakpoint at the selected variable.

Breakpoint Properties

If a breakpoint is present on the selected variable, selecting this option displays the Breakpoint properties dialog box.

Edit Value

Edit the contents of the selected variable.

Show memory

Select a memory space and update the Memory view. You can display the memory contents at the address of the value of the variable.

Show Previous Value

Display the current value and the previous value for the selected variable.

Select All

Select the variables in the variable view.

Load Debug Info for Module

Load debug information for the module that contains the selected variable.

Was this page helpful? Yes No