mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- try to improve error handling on windows for better stack traces
This commit is contained in:
@@ -51,6 +51,9 @@ public:
|
||||
virtual ~PlatformExceptionHandler() {}
|
||||
void install(string dumpFileName) {}
|
||||
virtual void handle()=0;
|
||||
#if defined(__WIN32__) && !defined(__GNUC__)
|
||||
virtual void handle(LPEXCEPTION_POINTERS pointers)=0;
|
||||
#endif
|
||||
};
|
||||
|
||||
// =====================================================
|
||||
@@ -84,6 +87,9 @@ public:
|
||||
|
||||
void install(string dumpFileName);
|
||||
virtual void handle()=0;
|
||||
#if !defined(__GNUC__)
|
||||
virtual void handle(LPEXCEPTION_POINTERS pointers)=0;
|
||||
#endif
|
||||
static string codeToStr(DWORD code);
|
||||
};
|
||||
|
||||
|
@@ -138,7 +138,7 @@ LONG WINAPI PlatformExceptionHandler::handler(LPEXCEPTION_POINTERS pointers){
|
||||
|
||||
//printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
thisPointer->handle();
|
||||
thisPointer->handle(pointers);
|
||||
#endif
|
||||
//printf("In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
|
Reference in New Issue
Block a user