System Debug Reference Manual (32650-90888)

Chapter 10 385
System Debug Standard Functions
func cmstackbase
fopen+102 CM procedure fopen + %102 (assumes CM mode)
cmaddr('fopen')+%102 CM procedure fopen + %102 (NM or CM
mode)
Note that the offset portion of the LCPTR address is required, but ignored.
Examples
$cmdebug > wl cmseg(prog(0.0))
SEG'
$cmdebug > wl cmseg(fopen)
XLSEG11
Limitations, Restrictions
none
func cmstackbase
Returns the starting virtual address of a process's compatibility mode stack.
Syntax
cmstackbase (
pin
)
Formal Declaration
cmstackbase:lptr (
pin
:u16)
Parameters
pin
The process identification number (PIN) for which the starting virtual
address of the CM stack is to be returned.
Examples
$nmdebug > wl cmstackbase(%10)
$2c4.40011cb0
Display the virtual address of the CM stack base for PIN %10.
$nmdat > wl "CM stack size = ", cmstacklimit(pin) - cmstackbase(pin) + 1
CM stack size = $4350
Calculate and display the CM stack length (in bytes) for the current PIN.