1.6.9. Expression strings

An expression string is a list of values separated by commas. The expression string can contain expressions and ASCII character strings enclosed in quotation marks. For several commands, each value in an expression string can be changed to the size specified by the size qualifiers. If the size is changed, padding is added to elements that do not fit.

Table 1.9 shows examples of expression strings.

Table 1.9. Examples of expression strings

StringResults
1,2,"abc"Values 1 and 2, and ASCII values of abc.
3+4, count, foo()Value 7, value of count, results of calling foo.
'1xyz123'ASCII values of 1, x, y, z, 1, 2, and 3.

You can cast values to arrays, so that for example you can access the second byte of a 32 bit word by casting the word to a byte array.

Note

If you enter a command line that starts with an open-bracket (, or an asterisk *, the debugger interprets this as if you had entered a CEXPRESSION command with that text as its argument. For example:

*(char*)0x8000 = 0

is equivalent to:

CE *(char*)0x8000 = 0

As with the normal CEXPRESSION command, you can use this to view or modify program variables and memory. CE is the abbreviation for CEXPRESSION.

See also

Copyright © 2002-2010 ARM Limited. All rights reserved.ARM DUI 0175M
Non-ConfidentialID102410