System Debug Reference Manual (32650-90888)
Chapter 10 377
System Debug Standard Functions
func cmg
P'RESET 6 ?
P'REWRITE 7 ?
P'CLOSEIO 10 ?
P'INITHEAP'3000 11 ?
TWO 2 71 123
P'WRITELN 12 ?
P'WRITESTR 13 ?
ONE 3 142 155
SEGMENT LENGTH 210
PRIMARY DB 2 INITIAL STACK 10240 CAPABILITY 600
SECONDARY DB 430 INITIAL DL 0 TOTAL CODE 210
TOTAL DB 432 MAXIMUM DATA ? TOTAL RECORDS 11
ELAPSED TIME 00:00:01.365 PROCESSOR TIME 00:00.740
END OF PREPARE
%cmdebug > wl ob'
PROG %0.0
%cmdebug > wl cmstart(ob')
PROG %0.0
Two methods of displaying the start address of the procedure ob'.
%cmdebug > wl ?ob'
PROG %0.13
%cmdebug > wl cmentry(ob')
PROG %0.13
Two methods of displaying the entry address of the procedure ob'.
%cmdebug > wl cmstart(one)
PROG %0.142
%cmdebug > wl cmentry(one)
PROG %0.155
%cmdebug > wl cmstart(two)
PROG %0.71
%cmdebug > wl cmentry(two)
PROG %0.123
Limitations, Restrictions
The names and addresses of nested CM procedures, such as procedure three, are not
available within the CM FPMAP records. Addresses that fall within nested procedures
(three) are returned as offsets relative to the parent procedure (two).
func cmg
Returns the virtual address (SPTR) of a process's CMGLOBALS record.