System Debug Reference Manual (32650-90888)
66 Chapter3
System Debug Interface Commands and Intrinsics
STACKDUMP Intrinsic
CCL Not returned by this intrinsic.
Examples
The following example is a code fragment from a Pascal program. It declares SETDUMP as
an intrinsic and then calls it. The rest of the code in the program is protected by the
Setdump facility, unless another routine in the program explicitly turns it off.
PROGRAM myprog;
TYPE bit16 = 0 .. 65535;
flags : bit16;
procedure SETDUMP; intrinsic;
BEGIN
SETDUMP( flags );
.
. <the rest of the program follows>
.
END.
STACKDUMP Intrinsic
Produces a full stack trace.
Callable from: NM, CM
Syntax
STACKDUMP (
filename, idnumber, flags, selec
);
Parameters
filename
Byte array (optional)
An array of characters giving the file name of a new output file to be
opened. The name should be terminated by any nonalphanumeric
character except a slash (/) or a period (.). The same restrictions for the
formaldesignator
parameter in the FOPEN intrinsic apply to this
parameter.
idnumber
16-bit integer (optional)
If the intrinsic fails due to a file system error, the file system specific error