Index: client/crashpad_info.h |
diff --git a/client/crashpad_info.h b/client/crashpad_info.h |
index 5ce9fb8e8fd97ec29fdc3d393b48fe9643846485..57ea4eb33af9e2613fbeb1b1c84fe9a95fe1b522 100644 |
--- a/client/crashpad_info.h |
+++ b/client/crashpad_info.h |
@@ -19,9 +19,14 @@ |
#include <stdint.h> |
+#include "build/build_config.h" |
#include "client/simple_string_dictionary.h" |
#include "util/misc/tri_state.h" |
+#if defined(OS_WIN) |
+#include <windows.h> |
+#endif // OS_WIN |
+ |
namespace crashpad { |
//! \brief A structure that can be used by a Crashpad-enabled program to |
@@ -93,6 +98,13 @@ struct CrashpadInfo { |
system_crash_reporter_forwarding_ = system_crash_reporter_forwarding; |
} |
+#if defined(OS_WIN) |
+ //! \brief Save an EXCEPTION_POINTERS record for the crash handler. |
+ void set_exception_pointers(EXCEPTION_POINTERS* exception_pointers) { |
+ exception_pointers_ = exception_pointers; |
+ } |
+#endif // OS_WIN |
+ |
enum : uint32_t { |
kSignature = 'CPad', |
}; |
@@ -116,6 +128,10 @@ struct CrashpadInfo { |
uint16_t padding_0_; |
SimpleStringDictionary* simple_annotations_; // weak |
+#if defined(OS_WIN) |
+ EXCEPTION_POINTERS* exception_pointers_; |
+#endif // OS_WIN |
+ |
#if defined(__clang__) |
#pragma clang diagnostic pop |
#endif |