Chapter 4: Viewing Code and Data
This section shows you how to:
To add a symbol to the symbol table
• Using the command line, enter:
Enter the symbol data type, the symbol name, and optionally the base address
and the initial value; then, press the < Return> key.
Two types of symbols can be added:
To add a program symbol of type int (default) as an alias for "num_checks",
enter the following:
Symbol Add nc Address &num_checks Fill_Mem -1
The "Fill_Mem -1" command places the value -1 in num_checks. Notice that
the Monitor window is not updated to reflect that change.
Add a symbol to the symbol table.
Delete a symbol from the symbol table.
Program symbols, which are identical to variables defined in a C or
assembly program. These symbols must be given base addresses.
Debugger symbols, which may be used to aid and control the flow of the
debugger. These symbols are specified without a base address, and only
debugger commands and C expressions in macros can refer to them. They
cannot be referenced by the program in target memory.