System Debug Reference Manual (32650-90888)

Chapter 3 69
System Debug Interface Commands and Intrinsics
STACKDUMP' Intrinsic
STACKDUMP' Intrinsic
Writes a full stack trace to a previously opened file.
Callable from: CM
Syntax
STACKDUMP' (
filename, idnumber, flags, selec
);
Parameters
filename
Byte array (required)
The first byte of this array contains the file number of a previously opened
file. The file is used as the output file. The file must have a record length
between 32 and 256 CM words, and write access must be allowed for the
file.
idnumber
16-bit integer (required)
If the intrinsic fails due to a file system error, the file system specific error
number of the failure is returned here. Any value passed into the intrinsic
through this parameter is ignored.
flags
16-bit unsigned integer (optional)
This parameter is provided for compatibility with MPE V. If it is present in
the intrinsic call, it is ignored and has no effect.
selec
32-bit integer array by reference (optional)
This parameter is provided for compatibility with MPE V. If it is present in
the intrinsic call, it is ignored and has no effect.
Discussion
The STACKDUMP' intrinsic writes a full dual stack trace to a previously opened file. The file
number of this file is passed to the intrinsic in the first byte of the
filename
parameter.
This intrinsic exists only in the compatibility mode library SL.PUB.SYS. No native mode to
compatibility mode switch stub is provided.
Condition Codes
CCE Request granted.
CCG Request denied. One of two possible problems causes this condition code.
First, an invalid address for the location of the
filename
parameter was
detected. Second, the file record size was not between 32 and 256 CM
words.
CCL Request denied. User does not have access to the file number passed in the