IBM Version 4 Universal Remote User Manual


 
#pragma exception_handler (UNEXPECTED_HDLR, ffdc_info, , _C2_MH_ESCAPE)
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Set the pointer to null, then try to increment. This will ᑍ/
/ᑍ generate an MCH361 error that will be trapped by the ᑍ/
/ᑍ unexpected handler. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
nulptr = NULL;
nulptr++;
#pragma disable_handler
} /ᑍ main ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ FUNCTION NAME: UNEXPECTED_HDLR ᑍ/
/ᑍ ᑍ/
/ᑍ FUNCTION: Handle unexpected exception. This exception ᑍ/
/ᑍ handler is used to log the software error via ᑍ/
/ᑍ FFDC. ᑍ/
/ᑍ ᑍ/
/ᑍ INPUT: Interrupt handler information ᑍ/
/ᑍ ᑍ/
/ᑍ OUTPUT: NONE ᑍ/
/ᑍ ᑍ/
/ᑍ EXCEPTIONS: CPFxxxx - All unexpected CPF exceptions ᑍ/
/ᑍ MCHxxxx - All unexpected MCH exceptions ᑍ/
/ᑍ ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
void UNEXPECTED_HDLR(_INTRPT_Hndlr_Parms_T ᑍerrmsg)
{
int i = ,
MsgLen = ,
number_of_keys = ;
char pgm_name[3],
context_name[3],
lib_name[5],
symptom_msg_data[MESSAGE_LEN],
symptom_msg_keyword[MSG_SYMPTOM_LEN];
ffdc_info_t ᑍffdc_info;
Qpd_Data_t data_key,
data_key2;
Qpd_Key_Pointer_t ffdc_keys[MAX_KEYS];
Qpd_Suspected_Module_t module_key;
Qpd_Symptom_t symptom_msg_key;
Qus_EC_t ErrorCode;
ErrorCode.Bytes_Provided = ;
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Getting pointer in local storage to the Communications Area. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
ffdc_info = (ffdc_info_t ᑍ)(errmsg->Com_Area);
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Need to notify message handler that we will handle the error. ᑍ/
Chapter 6. Original Program Model (OPM) and Integrated Language Environment (ILE) Differences 6-9