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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 //! and upload server. | 86 //! and upload server. |
87 //! | 87 //! |
88 //! \param[in] ipc_port The full name of the crash handler IPC port. | 88 //! \param[in] ipc_port The full name of the crash handler IPC port. |
89 //! | 89 //! |
90 //! \return `true` on success and `false` on failure. | 90 //! \return `true` on success and `false` on failure. |
91 bool SetHandler(const std::string& ipc_port); | 91 bool SetHandler(const std::string& ipc_port); |
92 | 92 |
93 //! \brief Requests that the handler capture a dump even though there hasn't | 93 //! \brief Requests that the handler capture a dump even though there hasn't |
94 //! been a crash. | 94 //! been a crash. |
95 //! | 95 //! |
96 //! \param[in] context A CONTEXT, generally captured by `RtlCaptureContext()` | 96 //! \param[in] context A `CONTEXT`, generally captured by CaptureContext() or |
97 //! or similar. | 97 //! similar. |
98 static void DumpWithoutCrash(const CONTEXT& context); | 98 static void DumpWithoutCrash(const CONTEXT& context); |
99 #endif | 99 #endif |
100 | 100 |
101 //! \brief Configures the process to direct its crashes to a Crashpad handler. | 101 //! \brief Configures the process to direct its crashes to a Crashpad handler. |
102 //! | 102 //! |
103 //! The Crashpad handler must previously have been started by StartHandler() | 103 //! The Crashpad handler must previously have been started by StartHandler() |
104 //! or configured by SetHandler(). | 104 //! or configured by SetHandler(). |
105 //! | 105 //! |
106 //! On Mac OS X, this method sets the task’s exception port for `EXC_CRASH`, | 106 //! On Mac OS X, this method sets the task’s exception port for `EXC_CRASH`, |
107 //! `EXC_RESOURCE`, and `EXC_GUARD` exceptions to the Mach send right obtained | 107 //! `EXC_RESOURCE`, and `EXC_GUARD` exceptions to the Mach send right obtained |
(...skipping 18 matching lines...) Expand all Loading... |
126 #if defined(OS_MACOSX) | 126 #if defined(OS_MACOSX) |
127 base::mac::ScopedMachSendRight exception_port_; | 127 base::mac::ScopedMachSendRight exception_port_; |
128 #endif | 128 #endif |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(CrashpadClient); | 130 DISALLOW_COPY_AND_ASSIGN(CrashpadClient); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace crashpad | 133 } // namespace crashpad |
134 | 134 |
135 #endif // CRASHPAD_CLIENT_CRASHPAD_CLIENT_H_ | 135 #endif // CRASHPAD_CLIENT_CRASHPAD_CLIENT_H_ |
OLD | NEW |