Variables are displayed in the following 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.
Figure 2-34 Local Variable view
- Global Variables window
This window shows the global variables with their types and values. They are marked by a green G.
Figure 2-35 Global Variable view
Complex values such as structs and arrays or pointers can
be expanded by clicking the small cross before the variable name.
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 all of the compilation units
that can be loaded.