Global Variables view

A new Global Variables view has been added.

To open the Global Variables view, click Window > Show View > Other... > Debug > Global Variables on the menu:


Global Variables view

The view displays all global variables returned by -symbol-info-variables command for GDB versions of 9.1 or newer.

For older versions of GDB, the list is obtained using the info variables command.

On the first debug session the variables list will be empty. In subsequent debugging sessions the added variables will be remembered.


Global Variables view

Remove button deletes the current selection from the view. If nothing is selected the button is disabled.

Remove all button deletes all variables from the view.

Show Type Names button is used when the user does not want to see the variables as a table and selects from View Menu and deselects Show columns, then the view starts to look like this.
Global Variables view

Note: If the user selects show types, the type in parentheses will also be shown.

Global Variables view

Show logical structure button works the same as the one in Variables view.

Collapse all button will collapse all variables that have been expanded.

Add button allows the user to add global variables.

Show path in variable name button will add or remove path from the name.
Global Variables view

To configure the Global Variables view, click the View Menu toolbar button. Use the Layout menu commands to configure the look of the Global Variables view.
Global Variables view


Global Variables view

The view supports both single and multi-core sessions. To switch from one context to another, it must be selected from the debug view.
Global Variables view


Global Variables view


Global Variables view


Global Variables view

Note: If you right-click on a variable, you will be able to Find a variable , Add Watchpoint and Watch expression.