libobs: Add win32 crash handler

A slightly refactored version of R1CH's crash handler, allows crash
handling for windows which provides stack traces of all threads and a
list of all loaded modules.  Also shows the processor, windows version,
and current libobs version.
This commit is contained in:
jp9000
2015-01-02 05:57:06 -08:00
parent f93b2fe794
commit e3068ed985
3 changed files with 504 additions and 0 deletions

View File

@@ -587,6 +587,10 @@ static bool obs_init(const char *locale)
return true;
}
#ifdef _WIN32
extern void initialize_crash_handler(void);
#endif
bool obs_startup(const char *locale)
{
bool success;
@@ -596,6 +600,10 @@ bool obs_startup(const char *locale)
return false;
}
#ifdef _WIN32
initialize_crash_handler();
#endif
success = obs_init(locale);
if (!success)
obs_shutdown();