(svn r13701) -Codechange: add some more info in crash.log

This commit is contained in:
glx 2008-07-14 20:04:54 +00:00
parent 71820bf129
commit 9895afb43e

View File

@ -33,6 +33,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#if defined(_MSC_VER) && !defined(WINCE) #if defined(_MSC_VER) && !defined(WINCE)
#include <dbghelp.h> #include <dbghelp.h>
#include "strings_func.h"
#endif #endif
static bool _has_console; static bool _has_console;
@ -497,6 +498,8 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
if (_exception_string) if (_exception_string)
output += sprintf(output, "Reason: %s\r\n", _exception_string); output += sprintf(output, "Reason: %s\r\n", _exception_string);
output += sprintf(output, "Language: %s\r\n", _dynlang.curr_file);
#ifdef _M_AMD64 #ifdef _M_AMD64
output += sprintf(output, "Exception %.8X at %.16IX\r\n" output += sprintf(output, "Exception %.8X at %.16IX\r\n"
"Registers:\r\n" "Registers:\r\n"