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, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #ifndef CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ | 15 #ifndef CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ |
16 #define CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ | 16 #define CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ |
17 | 17 |
18 #include <mach/mach.h> | 18 #include <mach/mach.h> |
19 | 19 |
| 20 #include "util/mach/mach_extensions.h" |
| 21 |
20 namespace crashpad { | 22 namespace crashpad { |
21 | 23 |
22 //! \brief Calls the appropriate `*exception_raise*()` function for the | 24 //! \brief Calls the appropriate `*exception_raise*()` function for the |
23 //! specified \a behavior. | 25 //! specified \a behavior. |
24 //! | 26 //! |
25 //! The function called will be `exception_raise()` for `EXCEPTION_DEFAULT`, | 27 //! The function called will be `exception_raise()` for `EXCEPTION_DEFAULT`, |
26 //! `exception_raise_state()` for `EXCEPTION_STATE`, or | 28 //! `exception_raise_state()` for `EXCEPTION_STATE`, or |
27 //! `exception_raise_state_identity()` for `EXCEPTION_STATE_IDENTITY`. If | 29 //! `exception_raise_state_identity()` for `EXCEPTION_STATE_IDENTITY`. If |
28 //! `MACH_EXCEPTION_CODES` is also set, the function called will instead be | 30 //! `MACH_EXCEPTION_CODES` is also set, the function called will instead be |
29 //! `mach_exception_raise()`, `mach_exception_raise_state()` or | 31 //! `mach_exception_raise()`, `mach_exception_raise_state()` or |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 //! | 68 //! |
67 //! \return The return value of the function called. | 69 //! \return The return value of the function called. |
68 kern_return_t UniversalExceptionRaise(exception_behavior_t behavior, | 70 kern_return_t UniversalExceptionRaise(exception_behavior_t behavior, |
69 exception_handler_t exception_port, | 71 exception_handler_t exception_port, |
70 thread_t thread, | 72 thread_t thread, |
71 task_t task, | 73 task_t task, |
72 exception_type_t exception, | 74 exception_type_t exception, |
73 const mach_exception_data_type_t* code, | 75 const mach_exception_data_type_t* code, |
74 mach_msg_type_number_t code_count, | 76 mach_msg_type_number_t code_count, |
75 thread_state_flavor_t* flavor, | 77 thread_state_flavor_t* flavor, |
76 const natural_t* old_state, | 78 ConstThreadState old_state, |
77 mach_msg_type_number_t old_state_count, | 79 mach_msg_type_number_t old_state_count, |
78 thread_state_t new_state, | 80 thread_state_t new_state, |
79 mach_msg_type_number_t* new_state_count); | 81 mach_msg_type_number_t* new_state_count); |
80 | 82 |
81 } // namespace crashpad | 83 } // namespace crashpad |
82 | 84 |
83 #endif // CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ | 85 #endif // CRASHPAD_UTIL_MACH_EXC_CLIENT_VARIANTS_H_ |
OLD | NEW |