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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 //! `EXC_MASK_ALL`, and thus ExcMaskAll(), never includes the value of | 108 //! `EXC_MASK_ALL`, and thus ExcMaskAll(), never includes the value of |
109 //! `EXC_MASK_CRASH` or `EXC_MASK_CORPSE_NOTIFY`. For situations where an | 109 //! `EXC_MASK_CRASH` or `EXC_MASK_CORPSE_NOTIFY`. For situations where an |
110 //! exception mask corresponding to every possible exception understood by the | 110 //! exception mask corresponding to every possible exception understood by the |
111 //! running kernel is desired, use this function instead. | 111 //! running kernel is desired, use this function instead. |
112 //! | 112 //! |
113 //! Should new exception types be introduced in the future, this function will | 113 //! Should new exception types be introduced in the future, this function will |
114 //! be updated to include their bits in the returned mask value when run time | 114 //! be updated to include their bits in the returned mask value when run time |
115 //! support is present. | 115 //! support is present. |
116 exception_mask_t ExcMaskValid(); | 116 exception_mask_t ExcMaskValid(); |
117 | 117 |
118 //! \brief Obtains the system’s default Mach exception handler for crash-type | |
119 //! exceptions. | |
120 //! | |
121 //! This is obtained by looking up `"com.apple.ReportCrash"` with the bootstrap | |
122 //! server. The service name comes from the first launch agent loaded by | |
123 //! `launchd` with a `MachServices` entry having `ExceptionServer` set. This | |
124 //! launch agent is normally loaded from | |
125 //! `/System/Library/LaunchAgents/com.apple.ReportCrash.plist`. | |
126 //! | |
127 //! \return On success, a send right to a Mach exception handler corresponding | |
128 //! to the system’s default crash reporter. On failure, `MACH_PORT_NULL`, | |
129 //! with a message logged. | |
130 exception_handler_t SystemCrashReporterHandler(); | |
Robert Sesek
2015/10/02 18:30:19
I think this could return a ScopedMachSendRight, s
| |
131 | |
118 } // namespace crashpad | 132 } // namespace crashpad |
119 | 133 |
120 #endif // CRASHPAD_UTIL_MACH_MACH_EXTENSIONS_H_ | 134 #endif // CRASHPAD_UTIL_MACH_MACH_EXTENSIONS_H_ |
OLD | NEW |