System Debug Reference Manual (32650-90888)

498 Chapter11
System Debug Standard Functions
func symtype
$nmdebug > wl SYMLEN("StudentRecord")
$40
Returns the size of a complete StudentRecord in bytes.
$nmdebug > wl SYMLEN("StudentRecord" 1)
$200
Returns the size of a complete StudentRecord in bits.
$nmdebug > wl SYMLEN("StudentRecord.Grades" #32)
$a
Returns the size of grades field in a StudentRecord in words.
Limitations, Restrictions
none
func symtype
Returns the type of a component described by the path specification.
Syntax
symtype (
pathspec
)
Formal Declaration
symtype:int (
pathspec
:str)
Parameters
pathspec
The path specification as described in chapter 5, "Symbolic
Formatting/Symbolic Access." The last element of the path
must
correspond to a user-defined type with a name. Elements of type integer,
array, or subrange result in an error. Any value returned by this
function may be used successfully in the FT command.
Examples
$nmdebug > symopen gradtyp.demo
Opens the symbolic data type file gradtyp.demo. It is assumed that the Debug variable
addr
contains the address of a StudentRecord data structure in virtual memory. The
following code fragment is from this file:
CONST MINGRADES = 1; MAXGRADES = 10;
MINSTUDENTS = 1; MAXSTUDENTS = 5;