[NTOS:KD] Move dump of stack trace on crash to debugger

Release builds now show again the bugcheck screen, instead of freezing.
This commit is contained in:
Hervé Poussineau 2020-03-30 00:03:02 +02:00
parent fd8cacae4c
commit 76a41370d0
2 changed files with 3 additions and 9 deletions

View file

@ -277,6 +277,9 @@ KdpEnterDebuggerException(IN PKTRAP_FRAME TrapFrame,
Context,
TrapFrame);
}
/* We'll manually dump the stack for the user... */
KeRosDumpStackFrames(NULL, 0);
#endif /* not KDBG */
/* Debugger didn't handle it, please handle! */

View file

@ -1067,15 +1067,6 @@ KeBugCheckWithTf(IN ULONG BugCheckCode,
/* Break in the debugger */
KiBugCheckDebugBreak(DBG_STATUS_BUGCHECK_FIRST);
}
else
{
/*
* ROS HACK.
* Ok, so debugging is enabled, but KDBG isn't there.
* We'll manually dump the stack for the user.
*/
KeRosDumpStackFrames(NULL, 0);
}
}
/* Raise IRQL to HIGH_LEVEL */