| |||
Home > DS-5 Debug perspective and views > Expressions view |
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.
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.
, 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:
An expression that resolves to an address, such
as main+1024
.
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.
The following options are available from the toolbar or context menu:
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.
Adds a new expression to the expression list.
Removes the selected expression from the list.
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.
Selects all expressions.
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, &name
the location of the expression, the name of an
array, name
.
The memory size is set to the size of the variable, using the sizeof keyword.
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, $pc
a variable that is currently held in a register,
For example, the variable t
might be held in
register R5.
Enables you to add register filters to an Expression view. Displays a sub menu that enables you to add to a specific Expressions view.
A list of formats you can use for the expression value.
The following View Menu options are available:
Displays a new instance of the Expressions view.
Refreshes the view.
Toggles the freezing of data in the current view. This also disables and enables the Refresh option.
ARM® DS-5™ Using Eclipse: