| |||
| Home > Working with the CLI > Types of RealView Debugger expressions | |||
As described in General command language syntax, the CLI requires that you enter commands in a form acceptable to the debugger. The components of these commands are expressions and statements. For more details on statements, see Using expressions and statements.
Table 1.1 shows many of the types of expressions accepted by the CLI. For each type, there is a cross-reference to a command in Chapter 2 RealView Debugger Commands where the syntax accepts that expression type.
Table 1.1. Types of CLI expressions
| Type | Pattern/example | Usage cross-reference |
|---|---|---|
| Arithmetical operation (value or address) | x+(y*5) | FILL |
| Array element reference (value or address) | argv[1] | |
| Conditional expression | c==3 | BREAKINSTRUCTION |
| Floating-point expression | 3.14 | FPRINTF |
| Function name reference (code address) | main | LIST |
| Line reference (code address) | # | SCOPE |
| Macro call | | ALIAS |
| Memory address | & | ADD |
| Memory address | (type *) | - |
| Memory location | 0x8000 | BREAKREAD |
| Memory range expression | 0x100..0x200 | BREAKREAD |
| Qualified line (specifying source module) | MODULE1\#12 | SCOPE |
| Stack level reference | | SCOPE |
| String expression | " | FILL |
| Symbol reference (value or address) | | ADD |
| Target connection reference | | CONNECT |
| Target program function | | BREAKINSTRUCTION |