KdpStub
UINT8 __stdcall KdpStub(
_KTRAP_FRAME *TrapFrame,
_KEXCEPTION_FRAME *ExceptionFrame,
_EXCEPTION_RECORD *ExceptionRecord,
_CONTEXT *ContextRecord,
CHAR PreviousMode,
UINT8 SecondChance){
unsigned __int64 v11;
if( ExceptionRecord->ExceptionCode == -2147483645
&& ExceptionRecord->NumberParameters
&& ((v11 = ExceptionRecord->ExceptionInformation[0], v11 - 3 <= 2) || v11 == 1) )
{
++ContextRecord->Rip;
return 1;
}
else if( !KdPitchDebugger
&& KdAutoEnableOnEvent
&& KdPreviouslyEnabled
&& !(_BYTE)KdDebuggerEnabled
&& KdEnableDebugger() >= 0
&& (_BYTE)KdDebuggerEnabled )
{
return KdpTrap(TrapFrame, ExceptionFrame, ExceptionRecord, ContextRecord, PreviousMode, SecondChance);
}
else
{
return 0;
}
}Referenced by:
KdTrap