- Added stack trace reporting in exception handler.

svn path=/trunk/; revision=6479
This commit is contained in:
Filip Navara 2003-10-31 16:27:01 +00:00
parent 65a44fd9e2
commit f18cbd53ba

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.71 2003/10/06 17:53:55 navaraf Exp $ /* $Id: create.c,v 1.72 2003/10/31 16:27:01 navaraf Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries * PROJECT: ReactOS system libraries
@ -328,6 +328,19 @@ _except_handler(
DPRINT1("Process terminated abnormally due to unhandled exception\n"); DPRINT1("Process terminated abnormally due to unhandled exception\n");
DPRINT1("Address: %x\n", ExceptionRecord->ExceptionAddress); DPRINT1("Address: %x\n", ExceptionRecord->ExceptionAddress);
#ifdef _X86_
{
PULONG Frame;
DPRINT1("Frames:\n");
Frame = (PULONG)((CONTEXT *)ContextRecord)->Ebp;
while (Frame != NULL && Frame != (PULONG)0xdeadbeef)
{
DPRINT1("%x\n", (PVOID)Frame[1]);
Frame = (PULONG)Frame[0];
}
}
#endif
if (3 < ++_except_recursion_trap) if (3 < ++_except_recursion_trap)
{ {
DPRINT1("_except_handler(...) appears to be recursing.\n"); DPRINT1("_except_handler(...) appears to be recursing.\n");