Variables view

This view enables you to:

Figure 41. 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:

Refresh

Refresh the view.

Freeze Data

Toggle the freezing of the data in the 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.

Search

Search for a variable.

New Variables View

Displays a new instance of the Variables view.

Copy

Copy 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

Select 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 Derefence 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.

Editing context menu options

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

Cut

Copy and delete the selected value.

Copy

Copy the selected value.

Paste

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

Delete

Delete the selected value.

Undo

Undo the last change you made to the selected value.

Right to left reading order

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

Show unicode control characters

Show any unicode control characters in the selected variable value.

Insert unicode control character

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

Show/hideSee also

Copyright © 2010, 2011 ARM. All rights reserved.ARM DUI 0446D
Non-ConfidentialID011411