| |||
| Home > Working with the CLI > Using the CLI > General command language syntax | |||
This section describes the general syntax conventions that are supported by the RealView Debugger CLI:
The commands you submit to RealView Debugger must conform to the following rules:
Each command line can contain only one debugger command.
The number of qualifiers and parameters supplied must match the number required or allowed for the command, and these numbers vary between commands.
You can use any combination of uppercase and lowercase letters in commands.
A command line can be up to 4095 characters in length.
Many commands accept flags, qualifiers, and parameters, using the following syntax:
COMMAND [,qualifier| /flag] [parameter]...
If a command qualifier is present, it must appear after the command name and before any command parameters.
You introduce each command qualifier with a punctuation character that indicates its type, as follows:
,qualifierA comma introduces a qualifier that provides RealView Debugger with additional information on how to execute a command. A qualifier introduced by a comma is typically a word. For example, the command:
DHELP,FULL =command_name
displays the full version instead of the summary version of its help text.
Other comma qualifiers are included in the command descriptions described in Chapter 2 RealView Debugger Commands.
/flagA forward slash introduces a flag in the form of one or two letters that acts as a switch.
For example, some commands accept a size flag. Valid size flags are:
/B8 bits. Sets the size of some value or values to a byte.
/H16 bits. Sets the size of some value or values to a halfword.
/W32 bits. Sets the size of some value or values to a word.
For an example of a command that accepts these qualifiers, see FILL on FILL.
Other flags formed by a slash and one or two letters are included in the command descriptions described in Chapter 2 RealView Debugger Commands.
As described in Command qualifiers, commands accept flags, qualifiers, and parameters.
When entering more than one parameter, you can type a space
before each successive parameter to improve readability. If a parameter,
for example a filename, includes spaces or other special characters,
you must enclose it in double quotes ("..."),
or single quotes ('...'). For details on these
and all other commands supported by the CLI, see Chapter 2 RealView Debugger Commands.
Command parameters are typically expressions that represent values or addresses to be used by a command. Parameters must be separated from each other with some form of punctuation. However, punctuation for the first parameter might be optional:
=textAn equals sign introduces a text string when you have multiple parameters. It is not required for the first parameter. Depending on the command, this might specify:
a resource
a process name
a thread of process name
a number or string expression
an address or offset
a description
an instance
a location
a configuration.
;windowA semicolon introduces a specification of where
any output produced by the command is to be sent. If you supply
a ; parameter,
it must be the final parameter of the command.window
;macro-callA semicolon also introduces a specification of a
macro to be called by the command. If you supply a ; parameter,
it must be the final parameter of the command. (No command accepts
both a macro-call and
a ;window parameter.);macro-call
The parameters you supply to a RealView Debugger command must conform to the following rules:
One or more
spaces must separate command parameters from a command when there
is no punctuation (for example, a /, ,,
or =).
In high-level mode, code addresses must be referenced by line numbers, labels, and function names, or casted values.
You can enter many debugger commands in an abbreviated form. RealView Debugger requires enough letters to uniquely identify the command you enter.
Many commands also have aliases. An alias is a different name that you can use instead of the listed name (see ALIAS on ALIAS). If you can use a short form of an alias, the underlined characters show the shortest acceptable form, for example:
Is an acceptable short form of BREAKINSTRUCTION.
BINSTRUCTIONIs an alias of BREAKINSTRUCTION.
Is the shortest form of BREAKINSTRUCTION.
Is
an acceptable short form of DCOMMANDS.
DHELPIs an alias of .DCOMMANDS
To see if a particular CLI command has an acceptable short form or alias, see its description in Chapter 2 RealView Debugger Commands.