Read values of scalar variables or arrays from application program that runs in the target system. A redefinition of a <read> element is not permitted and creates an error.
<read> manages a <member> variable with the following name:
Refer to Predefined variables.
Parent Element | Element Chain | ||
---|---|---|---|
object | /component_viewer/objects/object | ||
list | /component_viewer/objects/object/.../list | ||
Attributes | Description | Type | Use |
name | Name of variable. Can be used in Expressions. | xs:string | required |
type | Data type read from memory, following types are possible:
| xs:string | required |
size | Is an Expressions representing the array size or the number of values to read from target. The maximum array size is limited to 512. Default value is 1. | xs:string | optional |
symbol | Symbol name to access memory in the target system which is used to calculate a memory address. | xs:string | optional |
offset | Offset to the attribute symbol address. If no attribute symbol is not specified, then it is the memory address. Default value is 0. | xs:string | optional |
const | Variables with attribute const set to "1" are constants that are read only once after debugger start. Default value is 0. | xs:int | optional |
info | Descriptive text with additional information (comment). | xs:string | optional |
cond | Conditional execution: element is executed when expression result is not 0. Default value is 1. | xs:string | optional |
endian | Endianness for scalar data types. endian="L" — little endian. endian="B" — big endian. Default is automatic. | xs:string | optional |
Example: