From f18cbd53ba67a6390d87745366f1531cb2c8cca1 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Fri, 31 Oct 2003 16:27:01 +0000 Subject: [PATCH] - Added stack trace reporting in exception handler. svn path=/trunk/; revision=6479 --- reactos/lib/kernel32/process/create.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/reactos/lib/kernel32/process/create.c b/reactos/lib/kernel32/process/create.c index 190f9ddb9b2..8089925825a 100644 --- a/reactos/lib/kernel32/process/create.c +++ b/reactos/lib/kernel32/process/create.c @@ -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 * PROJECT: ReactOS system libraries @@ -328,6 +328,19 @@ _except_handler( DPRINT1("Process terminated abnormally due to unhandled exception\n"); 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) { DPRINT1("_except_handler(...) appears to be recursing.\n");