HP 68000 Series User Manual page 414

Debugger/simulator
Table of Contents

Advertisement

Chapter 9: Debugger Commands
Symbol Add
Program Symbols
Program symbols are specified with a base address (Address
< target_memory_address> ). The base address references an address in target
memory. Program symbols are identical to variables defined in a C or assembly
language program. The value of a program symbol is placed in target memory.
If an initial value is specified for the program symbol, the value is loaded in the
memory location referenced by the symbol. If an initial value is not specified,
the memory location referenced by the symbol is not changed.
Debugger Symbols
Debugger symbols are specified without a base address and are not associated
with a target memory address. Debugger symbols may be used to aid and
control the flow of the debugger. They are located at a fixed location in
debugger memory. Only debugger commands and C expressions in macros can
refer to debugger symbols. They cannot be referenced by the program in target
memory.
If an initial value is specified for the debugger symbol, the value is loaded in
the memory location referenced by the symbol. If an initial value is not
specified, the memory location referenced by the symbol is set to zero.
See Also
Debugger Macro Add
Symbol Display
Symbol Remove
Examples
To add a program symbol of type int (default) at target memory address 9ff0h
and set the memory location to value -1:
Symbol Add EOF Address 9ff0h Fill_Mem -1
To add a debugger symbol named str1 of type char referencing an
eight-character array and fill the array with string 'abcdefgh':
Symbol Add char str1[8] Fill_Mem 'abcdefgh'
To add a debugger symbol of type short named s1 and fill the memory location
with value 0x10203:
Symbol Add short s1 Fill_Mem 0x10203
392

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents