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

Unified Diff: snapshot/mac/cpu_context_mac.h

Issue 1058523002: Add ConstThreadState to mach_extensions.h and use it everywhere (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: clang-unformat Created 5 years, 9 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 | « handler/mac/exception_handler_server.cc ('k') | snapshot/mac/cpu_context_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/mac/cpu_context_mac.h
diff --git a/snapshot/mac/cpu_context_mac.h b/snapshot/mac/cpu_context_mac.h
index d8086378596f58b05366e0f92c46eca7bb7a668d..1d016cf5f7d016987c7babd5898a3904ad2a9661 100644
--- a/snapshot/mac/cpu_context_mac.h
+++ b/snapshot/mac/cpu_context_mac.h
@@ -19,6 +19,7 @@
#include "build/build_config.h"
#include "snapshot/cpu_context.h"
+#include "util/mach/mach_extensions.h"
namespace crashpad {
namespace internal {
@@ -60,7 +61,7 @@ namespace internal {
//! \param[in] x86_debug_state32 The state of the thread’s debug registers.
void InitializeCPUContextX86(CPUContextX86* context,
thread_state_flavor_t flavor,
- const natural_t* state,
+ ConstThreadState state,
mach_msg_type_number_t state_count,
const x86_thread_state32_t* x86_thread_state32,
const x86_float_state32_t* x86_float_state32,
@@ -101,7 +102,7 @@ void InitializeCPUContextX86(CPUContextX86* context,
//! \param[in] x86_debug_state64 The state of the thread’s debug registers.
void InitializeCPUContextX86_64(CPUContextX86_64* context,
thread_state_flavor_t flavor,
- const natural_t* state,
+ ConstThreadState state,
mach_msg_type_number_t state_count,
const x86_thread_state64_t* x86_thread_state64,
const x86_float_state64_t* x86_float_state64,
« no previous file with comments | « handler/mac/exception_handler_server.cc ('k') | snapshot/mac/cpu_context_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698