Expressions view

This view enables you to:

Figure 39. 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 expression 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.

Access

The access type of expression.

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.

Add New Expression

Adds a new expression to the expression list.

Remove Selected Expression

Removes the selected expression from the list.

Remove All Expressions

Removes all expressions from the list.

Search

Searches the data in the current view for an expression.

Cut

Copies and removes the selected expression.

Copy

Copies 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

Pastes expressions that you have previously cut or copied.

Delete

Deletes the selected expression.

Select All

Selects 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.

View Menu

The following View Menu options are available:

New Expression View

Displays a new instance of the Expressions view.

Refresh

Refreshes the view.

Freeze Data

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

Show/hideSee also

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