Describes the view content.
This view enables you to:
add expressions that you use regularly or that you want to examine in more detail
edit, and delete expressions
freeze the selected view to prevent the values being updated by a running target.
Figure 10-11 Expressions view
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+=1 you must use
Right-click on the column headers to select the columns that you want displayed:
An expression that resolves to an address, such as
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.
The type associated with the value at the address identified by the expression.
The number of array or pointer elements. You can edit a pointer element count.
The size of expression in bits.
The address in hexadecimal identified by the expression, or the name of a register, if expression contains only a single register name.
The access type of expression.
All columns are displayed by default.
Toolbar 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.
Searches the data in the current view for an expression.
Copies and removes the selected expression.
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.
Pastes expressions that you have previously cut or copied.
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, the address of an array,
the location of the expression, the name of an array,
The memory size is set to the size of the variable, using the
- 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,
a variable that is currently held in a register, For example, the variable
tmight 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.
Refreshes the view.
- Freeze Data
Toggles the freezing of data in the current view. This also disables and enables the Refresh option.