HPlogo System Debug Reference Manual > Chapter 3 System Debug Interface Commands and Intrinsics

HPRESETDUMP Intrinsic

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Disarms Debug call which is made during abnormal process terminations.

Callable from: NM

Syntax



   HPRESETDUMP (status);

Parameters


status

32-bit signed integer (optional)

The status returned by the HPRESETDUMP intrinsic call. The variable is a record containing two 16-bit fields, with the error number in the high-order 16 bits and the intrinsic subsystem number in the low-order 16 bits.

Discussion


The HPRESETDUMP intrinsic disarms the Debug call that is made during abnormal process termination. If the Setdump feature was not previously armed by one of the Setdump intrinsics or commands, this intrinsic has no effect. Only the current process is affected; all other existing processes retain their current Setdump attributes. After this call, any child process of the calling process will not have the Setdump attribute. This intrinsic performs the same function as the RESETDUMP intrinsic.The only difference is the means by which status information is returned.

Refer to the MPE/iX Intrinsics Reference Manual for additional discussion of this intrinsic.

Condition Codes


This intrinsic does not return meaningful condition code values. Status information is returned in the optional status parameter described above.

Example


The following example is a code fragment from a Pascal program. It declares HPRESETDUMP as an intrinsic and then calls it.

   PROCEDURE call_hpresetdump;
      VAR status       : integer;
      procedure HPRESETDUMP; intrinsic;
      BEGIN
         HPRESETDUMP(status);
         IF (status <> 0) THEN
            error_routine(status, 'HPRESETDUMP');
      END;




HPDEBUG Intrinsic


HPSETDUMP Intrinsic