Use the Expressions view to to add, edit, and delete expressions. You can also freeze the view to prevent the values being updated by a running target.
Figure 10-12 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
main+1024, or a register, for example
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 the expression in bits.
The address in hexadecimal identified by the expression, or the name of a register, if the expression contains only a single register name.
The access type of the expression.
All columns are displayed by default.
Toolbar and context menu options
The following options are available from the toolbar or context menu:
Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a different 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
Where enabled, displays the Memory view with the address set to the location of the expression.
- Show in Registers
If the expression corresponds to a register, displays the Registers view with that register selected.
- Toggle Watchpoint
- Sets or removes a watchpoint on a variable.
- Send to
Enables you to add register filters to an Expressions 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.