System Debug Reference Manual (32650-90888)
166 Chapter5
System Debug Command Specifications Fx-LOG
Fx (format)
$nmdebug > FT "StudentRecord" MAP
RECORD
NAME : NAMESTR ; ( 0.0 @ 10.0 )
ID : INTEGER ; ( 10.0 @ 4.0 )
YEAR : CLASS ; ( 14.0 @ 1.0 )
NUMGRADES: GRADERANGE ; ( 15.0 @ 1.0 )
GRADES : GRADESARRAY ; ( 18.0 @ 28.0 )
END ;
RECORD Size: 40 bytes
Display the structure of StudentRecord and print a component map.
$nmdebug > FT "StudentRecord.grades"
ARRAY [ GRADERANGE ] OF INTEGER
$nmdebug > FT "graderange"
1 .. 10
$nmdebug > FT "maxgrades"
INTEGER
Display various types. Notice that structure name is not limited to a simple type or
constant name; rather, it may consist of any composite structure name.
FV (Format Virtual) Examples
The following examples assume that debug variable data contains the virtual address of a
data structure corresponding to the type StudentArray.
Before looking at FV examples, let's take a look at the data for student number 1 the "old
fashioned way" (with the DV command):
$nmdebug > dv data,10
$ VIRT 7b8.40200010 $ 00000004 42696c6c 00000000 00000000
$ VIRT 7b8.40200020 $ 00000001 00040000 0000002d 00000041
$ VIRT 7b8.40200030 $ 0000004e 00000042 00000000 00000000
$ VIRT 7b8.40200040 $ 00000000 00000000 00000000 00000000
$nmdebug > dv data,6,a
$ VIRT 7b8.40200010 A .... Bill .... .... .... ....
This is what the first few words of the StudentArray data looks like in virtual memory.
$nmdebug > fv data "StudentRecord"
RECORD
NAME : 'Bill'
ID : 1
YEAR : SENIOR
NUMGRADES : 4
GRADES :
[ 1 ]: 2d
[ 2 ]: 41
[ 3 ]: 4e
[ 4 ]: 42
[ 5 ]: 0
[ 6 ]: 0
[ 7 ]: 0
[ 8 ]: 0