- try to improve error handling on windows for better stack traces

This commit is contained in:
Mark Vejvoda
2013-01-11 22:00:10 +00:00
parent 10f4c1ded4
commit 2a927cd0b8
2 changed files with 7 additions and 1 deletions

View File

@@ -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);
};