Expressions view

This view enables you to:

Figure 31. Expressions view

Expressions view

Note

If your expression contains side-effects when evaluating the expression, the results are unpredictable. Side-effects occur when the state of one or more inputs to the expression changes when the expression is evaluated.

For example, instead of x++ or x+=1 you must use x+1.

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

Name

An expression that resolves to an address, such as main+1024.

Value

The value of the expression. You can modify a value that has a white background. A yellow background indicates the value has changed.

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

Type

The type associated with the value at the address identified by the expression.

Count

The number of array or pointer elements. You can edit a pointer element count.

Size

The size of memory in bits.

Location

The address in hexadecimal identified by the expression, or the name of a register, if expression contains only a single register name.

All columns are displayed by default.

Show/hideToolbar and context menu options

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

Add New Expression

Add a new expression to the expression list.

Remove Selected Expression

Remove the selected expression from the list.

Remove All Expressions

Remove all expressions from the list.

Search

Search for an expression.

Refresh

Refresh the view.

Freeze Data

Toggle the freezing of the data in the view. This also disables and enables the Refresh option.

New Expression View

Display a new instance of the Expressions view.

Cut

Copy and remove the selected expression.

Copy

Copy the selected expression.

To copy an expression for use in the Disassembly view or Memory view, first select the expression in the Name field.

Paste

Paste expressions that you have previously cut or copied.

Delete

Delete the selected expression.

Select All

Select all expressions.

Show in memory view

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

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

  • the location of the expression, 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 register view

If the expression corresponds to a register, then displays the Registers view with that register selected. This might be:

  • an expression that consists only of a single register, for example $pc

  • a variable that is currently held in a register, for example, the variable t might be held in register R5.

Send to Selection

Enables you to add register 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 expression value.

Show/hideSee also

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