Variables view

This view enables you to:

Figure 51. Variables view

Variables view

Right-click on the column headers to select the columns that you want displayed:

Name

The name of the variable.

Value

The value of the variable.

Read-only values are displayed with a grey background. Any other color means that you can edit the value.

A value that you can edit is initially shown with a white background. If the value changes, either by performing a debug action such as stepping or by you editing the value directly, the background changes to yellow.

If you freeze the view, then you cannot change a value.

Type

The type of the variable.

Count

The number of array or pointer elements.

Size

The size of the variable in bits.

Location

The address of the variable.

All columns are displayed by default.

Show/hideToolbar and context menu options

The following options are available from the toolbar or context menu:

Linked: context

Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a specific connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.

Search

Searches the data in the current view for a variable.

Copy

Copies the selected variables. To copy the contents of an item such as a structure or an array, you must first expand that item.

This is useful if you want to copy the selected variables to a text editor and compare the values when execution stops at another location.

Select All

Selects all capabilities currently expanded in the view.

Show in Memory

Where enabled, displays the Memory view with the address set to either:

  • the value of the selected variable, if the variable translates to an address, for example the address of an array, &name

  • the location of the variable, for example the name of an array, name.

The memory size is set to the size of the variable, using the sizeof keyword.

Show in Registers

If the selected variable is currently held in a register, then displays the Registers view with that register selected. For example, the variable t might be held in register R5.

Show Dereference in Memory

If the selected variable is a pointer, then displays the Memory view with the address where the variable is pointing to in memory, selected.

Send to Selection

Enables you to add variable filters to an Expression view. Displays a sub menu that enables you to add to a specific Expressions view.

format list

A list of formats you can use for the variable value. The default is Unsigned Decimal.

View Menu

The following View Menu options are available:

New Variable View

Displays a new instance of the Variables view.

Refresh

Refreshes the view.

Freeze Data

Toggles the freezing of data in the current view. This also disables or enables the Refresh Variable View option. Also, you cannot modify the value of a variable if the data is frozen.

If you freeze the data before you expand an item, such as an array, for the first time, the view might show Pending... items. Unfreeze the data to see the items.

Editing context menu options

The following options are available on the context menu when you select a variable value for editing:

Cut

Copies and deletes the selected value.

Copy

Copies the selected value.

Paste

Pastes a value that you have previously cut or copied into the selected variable value.

Delete

Deletes the selected value.

Undo

Reverts the last change you made to the selected value.

Right to left reading order

Sets the reading order for the selected variable value to be left or right justified.

Show unicode control characters

Shows any unicode control characters in the selected variable value.

Insert unicode control character

Selects the unicode control character to insert into the selected variable value.

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446G
Non-ConfidentialID092311