mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 02:14:15 +01:00
Add an API to pass exception information into the handler (#192).
r=ted.mielczarek http://groups.google.com/group/google-breakpad-dev/browse_thread/thread/42e9ee1a636bca8b git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@191 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
bd7b42587c
commit
fb6be7cf42
@ -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;
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user