HP 64767 User Manual page 420

Emulation/analysis
Table of Contents

Advertisement

Chapter 12: Emulator/Analyzer Interface Commands
--SYMB--
Examples of referencing different symbols in the programs shown earlier are:
control.c:main
control.c:port_one
SRU Searches for Symbols. SRU has symbol-searching capability. It also
has the ability to explicitly set a "current working symbol" (cws), which allows you
to refer to symbols relative to the cws.
When the shell variable HP64KSYMBPATH is set to be a blank-separated list of
symbols, a "search list" is set. When a symbol is entered without the leading colon
or dot, which forces it to be global, the following happens:
The current working symbol (if there is one) is prefixed to the entered symbol. If
the resulting symbol exists, it will be the symbol that is used.
For each entry in HP64KSYMBPATH:
In addition to the HP64KSYMBPATH environment variable and cws, a search
algorithm to resolve symbol references on the command line is used. These actions
will occur when using the filename as an element of the symbol in the command
line.
420
Prefix the entry with the entered symbol. If the symbol exists, that is the
symbol to use.
Otherwise, remove the last entry in the HP64KSYMBPATH's symbol and
repeat the previous step.
If the first element of the entered symbol is a filename, SRU will construct a
module name from the filename. The module is defined as the basename of the
filename, with the extension removed. For example, modulename
"PORTHAND" is derived from the path and filename
"/system/project1/porthand.c".
– If the request was for the address of a line number, SRU will check to
see if the symbol <modulename>.<filename> exists. If it does, it will
assume that is the symbol you want. Otherwise, it will return the
message "symbol not found".
– If the request was not for the address of a line number, SRU will check
to see if the symbol with the <filename> replaced with <modulename>

Advertisement

Table of Contents
loading

This manual is also suitable for:

80186/8/xl/ea/eb

Table of Contents