System Debug Reference Manual (32650-90888)

Chapter 10 467
System Debug Standard Functions
func symval
GradeRange = MINGRADES .. MAXGRADES;
GradesArray = ARRAY [ GradeRange ] OF integer;
Class = ( SENIOR, JUNIOR, SOPHOMORE, FRESHMAN );
NameStr = string[8];
StudentRecord = RECORD
Name : NameStr;
Id : Integer;
Year : Class;
NumGrades : GradeRange;
Grades : GradesArray;
END;
$nmdebug > wl symtype("StudentRecord.NumGrades")
GRADERANGE
Print out the type name of the NumGrades field of a StudentRecord.
Limitations, Restrictions
None.
func symval
Returns the value of a simple data type specified by a virtual address and a path.
Syntax
symval (
virtaddr pathspec
)
Formal Declaration
symval:any (
virtaddr
:ptr
pathspec
:str)
Parameters
virtaddr
The virtual address of the data structure.
Virtaddr
can be a short pointer, a long pointer, or a full logical code
pointer.
pathspec
A path specification, as described in chapter 5, "Symbolic
Formatting/Symbolic Access."
Examples
$nmdebug > symopen gradtyp.demo
Opens the symbolic data type file gradtyp.demo. It is assumed that the Debug variable