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

Unified Diff: util/mach/mach_extensions.h

Issue 563383002: Add SymbolicConstantsMach and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 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 | « no previous file | util/mach/mach_extensions.cc » ('j') | util/mach/symbolic_constants_mach.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/mach_extensions.h
diff --git a/util/mach/mach_extensions.h b/util/mach/mach_extensions.h
index 81e9a86a97f6f72b486f53606e3d594827010696..d13a5851635262ef6036e4b89134bb886d08d314 100644
--- a/util/mach/mach_extensions.h
+++ b/util/mach/mach_extensions.h
@@ -39,6 +39,18 @@ const mach_port_t kMachPortNull = MACH_PORT_NULL;
//! \brief An exception type to use for simulated exceptions.
const exception_type_t kMachExceptionSimulated = 'CPsx';
+//! \brief The value for `EXC_MASK_ALL` appropriate for the operating system at
+//! run time.
+//!
+//! The SDK’s definition of `EXC_MASK_ALL` has changed over time, with later
+//! versions containing more bits set than earlier versions. However, older
+//! kernels will reject exception masks that contain bits set that they don’t
+//! recognize. Calling this function will return a value for `EXC_MASK_ALL`
+//! appropriate for the system at run time.
+//!
+//! \note `EXC_MASK_ALL` does not include the value of `EXC_MASK_CRASH`.
+exception_mask_t ExcMaskAll();
+
} // namespace crashpad
#endif // CRASHPAD_UTIL_MACH_MACH_EXTENSIONS_H_
« no previous file with comments | « no previous file | util/mach/mach_extensions.cc » ('j') | util/mach/symbolic_constants_mach.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698