Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1646)

Unified Diff: snapshot/exception_snapshot.h

Issue 1126413008: win: Implement exception snapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes2 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compat/non_win/dbghelp.h ('k') | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/exception_snapshot.h
diff --git a/snapshot/exception_snapshot.h b/snapshot/exception_snapshot.h
index f5ffd06a2295a9991a85143449c14d5ce4f77b04..bd8ad8a6be46c9e59d1cf57e827fa3ec2dfb81d5 100644
--- a/snapshot/exception_snapshot.h
+++ b/snapshot/exception_snapshot.h
@@ -53,6 +53,9 @@ class ExceptionSnapshot {
//! processed as `EXC_CRASH` when generated from another preceding exception:
//! the original exception code will appear instead. The exception type as it
//! was received will appear at index 0 of Codes().
+ //!
+ //! For Windows, this will be an \ref EXCEPTION_x "EXCEPTION_*" exception type
+ //! such as `EXCEPTION_ACCESS_VIOLATION`.
virtual uint32_t Exception() const = 0;
//! \brief Returns the second-level exception code identifying the exception.
@@ -69,6 +72,9 @@ class ExceptionSnapshot {
//!
//! In all cases on Mac OS X, the full exception code at index 0 as it was
//! received will appear at index 1 of Codes().
+ //!
+ //! On Windows, this will either be `0` if the exception is continuable, or
+ //! `EXCEPTION_NONCONTINUABLE` to indicate a noncontinuable exception.
virtual uint32_t ExceptionInfo() const = 0;
//! \brief Returns the address that triggered the exception.
@@ -92,6 +98,10 @@ class ExceptionSnapshot {
//! For Mac OS X, this will be a vector containing the original exception type
//! and the values of `code[0]` and `code[1]` as received by a Mach exception
//! handler.
+ //!
+ //! For Windows, these are additional arguments (if any) as provided to
+ //! `RaiseException()`. See the documentation for `ExceptionInformation` in
+ //! `EXCEPTION_RECORD`.
virtual const std::vector<uint64_t>& Codes() const = 0;
};
« no previous file with comments | « compat/non_win/dbghelp.h ('k') | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698