| |||
Home > Working with the CLI > Constructing expressions > Addresses |
An address can be represented by most C expressions that evaluate to a single value. In source-level mode, expressions that evaluate to a code address cannot contain numeric constants or operators, unless you use a cast.
Data address and assembly-level code address expressions can also be represented by most legal C expressions. For details on legal C expressions, see the C language Reference Manual. There are no restrictions involving constants or operators. Table 1.8 summarizes the special addressing types supported by the RealView Debugger.
Table 1.8. Address expressions
Addressing type | Indicator | Examples |
---|---|---|
Indirect addresses | [ ] | PRINTVALUE (H W) [23] |
Source line numbers (omitting \ defaults
to the source file currently selected in the Code window) | \ | BREAKINSTRUCTION \DHRY_1\#149
BREAKINSTRUCTION #149 |
Address ranges | .. | DUMP 0x2200..0x2214
DUMP 0x2200..+14 |
Multistatement reference | : | BREAKINSTRUCTION #21:32 (refers
to the statement on line 21 that contains column 32) |
. | BREAKINSTRUCTION #21.2 (refers
to the second statement on line 21) | |
Address of non-label symbol. The symbol cannot be that of a register or a constant. | & | BREAKREAD &var |