Debugger Engine Commands
Debugger Commands
773
Microcontrollers Debugger Manual
processing starts. A symbol cannot represent a command name. Note that a symbol
definition precedes (and hence conceals) a program variable with the same name.
Defined symbols remain valid when a new application is loaded. An application variable
or I/O register can be overwritten with a DEFINE command.
NOTE This command can be used to assign meaningful names to expressions, which
can be used in other commands. This increases the readability of command
files and avoids re-evaluation of complex expressions.
Usage
DEFINE symbol [=] expression
Components
Debugger engine.
Example:
in>DEFINE addr $1000
in>DEFINE limit = addr + 15
First addr is defined as a constant equivalent to $1000. Then limit is defined and
affected with the value ($1000 + 15)
A symbol defined in the loaded application can be redefined on the command line
using the DEFINE command. The symbol defined in the application is not
accessible until an UNDEF on that symbol name is detected in the command file.