diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/windows/handler/exception_handler.cc | 6 | ||||
-rw-r--r-- | src/client/windows/handler/exception_handler.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc index 5a1444c2..d2c6e7d0 100644 --- a/src/client/windows/handler/exception_handler.cc +++ b/src/client/windows/handler/exception_handler.cc @@ -410,7 +410,11 @@ bool ExceptionHandler::WriteMinidumpOnHandlerThread( } bool ExceptionHandler::WriteMinidump() { - bool success = WriteMinidumpOnHandlerThread(NULL, NULL); + return WriteMinidumpForException(NULL); +} + +bool ExceptionHandler::WriteMinidumpForException(EXCEPTION_POINTERS *exinfo) { + bool success = WriteMinidumpOnHandlerThread(exinfo, NULL); UpdateNextID(); return success; } diff --git a/src/client/windows/handler/exception_handler.h b/src/client/windows/handler/exception_handler.h index e4b3f3bb..a9eccd6b 100644 --- a/src/client/windows/handler/exception_handler.h +++ b/src/client/windows/handler/exception_handler.h @@ -144,6 +144,10 @@ class ExceptionHandler { // execution state independently of a crash. Returns true on success. bool WriteMinidump(); + // Writes a minidump immediately, with the user-supplied exception + // information. + bool WriteMinidumpForException(EXCEPTION_POINTERS *exinfo); + // Convenience form of WriteMinidump which does not require an // ExceptionHandler instance. static bool WriteMinidump(const wstring &dump_path, |