From d67dacea97311dc8861f07177711a0c9b2e96f1e Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sun, 22 Oct 2000 23:51:48 +0000 Subject: [PATCH] - Print CS reg at crash MessageBox (needed for Win16 programs). - Add "hint" for debugger setup. --- win32/except.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/win32/except.c b/win32/except.c index bf4565b58c8..6ff1219f8cb 100644 --- a/win32/except.c +++ b/win32/except.c @@ -133,9 +133,10 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers) } if (!bAuto && Callout.MessageBoxA) { - sprintf( buffer, "Unhandled exception 0x%08lx at address 0x%08lx.\n" + sprintf( buffer, "Unhandled exception 0x%08lx at address 0x%04lx:0x%08lx.\n" "Do you wish to debug it ?", epointers->ExceptionRecord->ExceptionCode, + epointers->ContextRecord->SegCs, (DWORD)epointers->ExceptionRecord->ExceptionAddress ); if (Callout.MessageBoxA( 0, buffer, "Error", MB_YESNO | MB_ICONHAND ) == IDNO) { TRACE("Killing process\n"); @@ -168,7 +169,9 @@ DWORD WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS epointers) WaitForSingleObject(hEvent, INFINITE); ret = EXCEPTION_CONTINUE_SEARCH; } else { - ERR("Couldn't start debugger (%s) (%ld)\n", buffer, GetLastError()); + ERR("Couldn't start debugger (%s) (%ld)\n" + "Read the documentation on how to set up winedbg or another debugger\n", + buffer, GetLastError()); } CloseHandle(hEvent); } else { -- 2.11.4.GIT