Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 | 124 |
| 125 // Traits for ExcServer<> and SimplifiedExcServer<> adapting them for use with | 125 // Traits for ExcServer<> and SimplifiedExcServer<> adapting them for use with |
| 126 // the exc subsystem. | 126 // the exc subsystem. |
| 127 struct ExcTraits { | 127 struct ExcTraits { |
| 128 using ExceptionCode = exception_data_type_t; | 128 using ExceptionCode = exception_data_type_t; |
| 129 | 129 |
| 130 using RequestUnion = __RequestUnion__exc_subsystem; | 130 using RequestUnion = __RequestUnion__exc_subsystem; |
| 131 using ReplyUnion = __ReplyUnion__exc_subsystem; | 131 using ReplyUnion = __ReplyUnion__exc_subsystem; |
| 132 | 132 |
| 133 using ExceptionRaiseRequest = __Request__exception_raise_t; | 133 using ExceptionRaiseRequest = __Request__exception_raise_t; |
| 134 using ExceptionRaiseStateRequest = __Request__exception_raise_state_t; | 134 using ExceptionRaiseStateRequest = __Request__exception_raise_state_t; |
|
Mark Mentovai
2015/03/08 19:15:42
They’re still here, they’ve just been promoted up
| |
| 135 using ExceptionRaiseStateIdentityRequest = | 135 using ExceptionRaiseStateIdentityRequest = |
| 136 __Request__exception_raise_state_identity_t; | 136 __Request__exception_raise_state_identity_t; |
| 137 | 137 |
| 138 using ExceptionRaiseReply = __Reply__exception_raise_t; | 138 using ExceptionRaiseReply = __Reply__exception_raise_t; |
| 139 using ExceptionRaiseStateReply = __Reply__exception_raise_state_t; | 139 using ExceptionRaiseStateReply = __Reply__exception_raise_state_t; |
| 140 using ExceptionRaiseStateIdentityReply = | 140 using ExceptionRaiseStateIdentityReply = |
| 141 __Reply__exception_raise_state_identity_t; | 141 __Reply__exception_raise_state_identity_t; |
| 142 | 142 |
| 143 // The MIG-generated __MIG_check__Request__*() functions are not declared as | 143 // The MIG-generated __MIG_check__Request__*() functions are not declared as |
| 144 // accepting const data, but they could have been because they in fact do not | 144 // accepting const data, but they could have been because they in fact do not |
| 145 // modify the data. | 145 // modify the data. |
| 146 | 146 |
| 147 static kern_return_t MIGCheckRequestExceptionRaise( | 147 static kern_return_t MIGCheckRequestExceptionRaise( |
| 148 const ExceptionRaiseRequest* in_request) { | 148 const ExceptionRaiseRequest* in_request) { |
| 149 return __MIG_check__Request__exception_raise_t( | 149 return __MIG_check__Request__exception_raise_t( |
| 150 const_cast<ExceptionRaiseRequest*>(in_request)); | 150 const_cast<ExceptionRaiseRequest*>(in_request)); |
| 151 } | 151 } |
| 152 | 152 |
| 153 static kern_return_t MIGCheckRequestExceptionRaiseState( | 153 static kern_return_t MIGCheckRequestExceptionRaiseState( |
| 154 const ExceptionRaiseStateRequest* in_request, | 154 const ExceptionRaiseStateRequest* in_request, |
| 155 const ExceptionRaiseStateRequest** in_request_1) { | 155 const ExceptionRaiseStateRequest** in_request_1) { |
| 156 using Request = __Request__exception_raise_state_t; | |
| 157 return __MIG_check__Request__exception_raise_state_t( | 156 return __MIG_check__Request__exception_raise_state_t( |
| 158 const_cast<ExceptionRaiseStateRequest*>(in_request), | 157 const_cast<ExceptionRaiseStateRequest*>(in_request), |
| 159 const_cast<ExceptionRaiseStateRequest**>(in_request_1)); | 158 const_cast<ExceptionRaiseStateRequest**>(in_request_1)); |
| 160 } | 159 } |
| 161 | 160 |
| 162 static kern_return_t MIGCheckRequestExceptionRaiseStateIdentity( | 161 static kern_return_t MIGCheckRequestExceptionRaiseStateIdentity( |
| 163 const ExceptionRaiseStateIdentityRequest* in_request, | 162 const ExceptionRaiseStateIdentityRequest* in_request, |
| 164 const ExceptionRaiseStateIdentityRequest** in_request_1) { | 163 const ExceptionRaiseStateIdentityRequest** in_request_1) { |
| 165 return __MIG_check__Request__exception_raise_state_identity_t( | 164 return __MIG_check__Request__exception_raise_state_identity_t( |
| 166 const_cast<ExceptionRaiseStateIdentityRequest*>(in_request), | 165 const_cast<ExceptionRaiseStateIdentityRequest*>(in_request), |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 | 198 |
| 200 static kern_return_t MIGCheckRequestExceptionRaise( | 199 static kern_return_t MIGCheckRequestExceptionRaise( |
| 201 const ExceptionRaiseRequest* in_request) { | 200 const ExceptionRaiseRequest* in_request) { |
| 202 return __MIG_check__Request__mach_exception_raise_t( | 201 return __MIG_check__Request__mach_exception_raise_t( |
| 203 const_cast<ExceptionRaiseRequest*>(in_request)); | 202 const_cast<ExceptionRaiseRequest*>(in_request)); |
| 204 } | 203 } |
| 205 | 204 |
| 206 static kern_return_t MIGCheckRequestExceptionRaiseState( | 205 static kern_return_t MIGCheckRequestExceptionRaiseState( |
| 207 const ExceptionRaiseStateRequest* in_request, | 206 const ExceptionRaiseStateRequest* in_request, |
| 208 const ExceptionRaiseStateRequest** in_request_1) { | 207 const ExceptionRaiseStateRequest** in_request_1) { |
| 209 using Request = __Request__exception_raise_state_t; | |
| 210 return __MIG_check__Request__mach_exception_raise_state_t( | 208 return __MIG_check__Request__mach_exception_raise_state_t( |
| 211 const_cast<ExceptionRaiseStateRequest*>(in_request), | 209 const_cast<ExceptionRaiseStateRequest*>(in_request), |
| 212 const_cast<ExceptionRaiseStateRequest**>(in_request_1)); | 210 const_cast<ExceptionRaiseStateRequest**>(in_request_1)); |
| 213 } | 211 } |
| 214 | 212 |
| 215 static kern_return_t MIGCheckRequestExceptionRaiseStateIdentity( | 213 static kern_return_t MIGCheckRequestExceptionRaiseStateIdentity( |
| 216 const ExceptionRaiseStateIdentityRequest* in_request, | 214 const ExceptionRaiseStateIdentityRequest* in_request, |
| 217 const ExceptionRaiseStateIdentityRequest** in_request_1) { | 215 const ExceptionRaiseStateIdentityRequest** in_request_1) { |
| 218 return __MIG_check__Request__mach_exception_raise_state_identity_t( | 216 return __MIG_check__Request__mach_exception_raise_state_identity_t( |
| 219 const_cast<ExceptionRaiseStateIdentityRequest*>(in_request), | 217 const_cast<ExceptionRaiseStateIdentityRequest*>(in_request), |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 797 kern_return_t ExcServerSuccessfulReturnValue(exception_behavior_t behavior, | 795 kern_return_t ExcServerSuccessfulReturnValue(exception_behavior_t behavior, |
| 798 bool set_thread_state) { | 796 bool set_thread_state) { |
| 799 if (!set_thread_state && ExceptionBehaviorHasState(behavior)) { | 797 if (!set_thread_state && ExceptionBehaviorHasState(behavior)) { |
| 800 return MACH_RCV_PORT_DIED; | 798 return MACH_RCV_PORT_DIED; |
| 801 } | 799 } |
| 802 | 800 |
| 803 return KERN_SUCCESS; | 801 return KERN_SUCCESS; |
| 804 } | 802 } |
| 805 | 803 |
| 806 } // namespace crashpad | 804 } // namespace crashpad |
| OLD | NEW |