Scoping Rules; Referencing Symbols - HP 68000 Series User Manual

Debugger/simulator
Table of Contents

Advertisement

Chapter 10: Expressions and Symbols in Debugger Commands
(H W)
This type cast coerces an expression into a word (2 bytes). For example,
assuming the symbol int_val has the value 0x12345678,
Expression Display_Value (H W) int_val
will cause int_val to be displayed as 0x5678.
(H B)
This type cast coerces an expression into a byte. For example, assuming the
symbol int_val has a value of 0x12345678,
Expression Display_Value (H B) int_val
will cause int_val to be displayed as 0x78.

Scoping Rules

References to symbols follow the standard scoping rules of C. For example, if
the symbol 'x' is referenced, the debugger searches its symbol table for 'x' using
the following priority:
A variable local to the current macro (if any).
A variable local to the current function (if any).
A variable static to the current module (if any).
A global variable or debugger symbol.

Referencing Symbols

Symbols are qualified (and therefore referenced) according to their context.
Context in the debugger is defined by a symbol tree and, if applicable, by a
module and function name.
Root Names
Within the debugger, the symbol table is represented as a hierarchical tree,
with each level representing a scoping level. There are two types of symbol
trees which exist within the debugger:
non-program symbol tree
program symbol tree
Symbolic Referencing
437

Advertisement

Table of Contents
loading

This manual is also suitable for:

B1466

Table of Contents