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

Side by Side Diff: handler/mac/exception_handler_server.cc

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, 8 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 unified diff | Download patch
« no previous file with comments | « handler/mac/crash_report_exception_handler.cc ('k') | snapshot/mac/cpu_context_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // UniversalMachExcServer::Interface: 110 // UniversalMachExcServer::Interface:
111 111
112 kern_return_t CatchMachException(exception_behavior_t behavior, 112 kern_return_t CatchMachException(exception_behavior_t behavior,
113 exception_handler_t exception_port, 113 exception_handler_t exception_port,
114 thread_t thread, 114 thread_t thread,
115 task_t task, 115 task_t task,
116 exception_type_t exception, 116 exception_type_t exception,
117 const mach_exception_data_type_t* code, 117 const mach_exception_data_type_t* code,
118 mach_msg_type_number_t code_count, 118 mach_msg_type_number_t code_count,
119 thread_state_flavor_t* flavor, 119 thread_state_flavor_t* flavor,
120 const natural_t* old_state, 120 ConstThreadState old_state,
121 mach_msg_type_number_t old_state_count, 121 mach_msg_type_number_t old_state_count,
122 thread_state_t new_state, 122 thread_state_t new_state,
123 mach_msg_type_number_t* new_state_count, 123 mach_msg_type_number_t* new_state_count,
124 const mach_msg_trailer_t* trailer, 124 const mach_msg_trailer_t* trailer,
125 bool* destroy_complex_request) override { 125 bool* destroy_complex_request) override {
126 if (exception_port != exception_port_) { 126 if (exception_port != exception_port_) {
127 LOG(WARNING) << "exception port mismatch"; 127 LOG(WARNING) << "exception port mismatch";
128 return MIG_BAD_ID; 128 return MIG_BAD_ID;
129 } 129 }
130 130
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 ExceptionHandlerServer::~ExceptionHandlerServer() { 227 ExceptionHandlerServer::~ExceptionHandlerServer() {
228 } 228 }
229 229
230 void ExceptionHandlerServer::Run( 230 void ExceptionHandlerServer::Run(
231 UniversalMachExcServer::Interface* exception_interface) { 231 UniversalMachExcServer::Interface* exception_interface) {
232 ExceptionHandlerServerRun run(receive_port_, exception_interface); 232 ExceptionHandlerServerRun run(receive_port_, exception_interface);
233 run.Run(); 233 run.Run();
234 } 234 }
235 235
236 } // namespace crashpad 236 } // namespace crashpad
OLDNEW
« no previous file with comments | « handler/mac/crash_report_exception_handler.cc ('k') | snapshot/mac/cpu_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698