mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +00:00
Print the exception code and the faulting address, if the address is available.
svn path=/trunk/; revision=17598
This commit is contained in:
parent
276ca539bd
commit
b8b259908a
1 changed files with 7 additions and 2 deletions
|
@ -164,8 +164,13 @@ UnhandledExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo)
|
||||||
|
|
||||||
/* Print a stack trace. */
|
/* Print a stack trace. */
|
||||||
DbgPrint("Unhandled exception\n");
|
DbgPrint("Unhandled exception\n");
|
||||||
DbgPrint("Address:\n");
|
DbgPrint("ExceptionCode: %8x\n", ExceptionInfo->ExceptionRecord->ExceptionCode);
|
||||||
DbgPrint(" %8x %s\n",
|
if (ExceptionInfo->ExceptionRecord->ExceptionCode == STATUS_ACCESS_VIOLATION &&
|
||||||
|
ExceptionInfo->ExceptionRecord->NumberParameters == 2)
|
||||||
|
{
|
||||||
|
DbgPrint("Faulting Address: %8x\n", ExceptionInfo->ExceptionRecord->ExceptionInformation[1]);
|
||||||
|
}
|
||||||
|
DbgPrint("Address: %8x %s\n",
|
||||||
ExceptionInfo->ExceptionRecord->ExceptionAddress,
|
ExceptionInfo->ExceptionRecord->ExceptionAddress,
|
||||||
_module_name_from_addr(ExceptionInfo->ExceptionRecord->ExceptionAddress, &StartAddr, szMod, sizeof(szMod)));
|
_module_name_from_addr(ExceptionInfo->ExceptionRecord->ExceptionAddress, &StartAddr, szMod, sizeof(szMod)));
|
||||||
_dump_context ( ExceptionInfo->ContextRecord );
|
_dump_context ( ExceptionInfo->ContextRecord );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue