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 10 matching lines...) Expand all Loading... |
21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
22 #include "base/logging.h" | 22 #include "base/logging.h" |
23 #include "base/mac/mach_logging.h" | 23 #include "base/mac/mach_logging.h" |
24 #include "base/mac/scoped_mach_port.h" | 24 #include "base/mac/scoped_mach_port.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
27 #include "util/mach/exc_client_variants.h" | 27 #include "util/mach/exc_client_variants.h" |
28 #include "util/mach/exception_behaviors.h" | 28 #include "util/mach/exception_behaviors.h" |
29 #include "util/mach/exception_ports.h" | 29 #include "util/mach/exception_ports.h" |
30 #include "util/mach/mach_extensions.h" | 30 #include "util/mach/mach_extensions.h" |
| 31 #include "util/misc/implicit_cast.h" |
31 | 32 |
32 namespace crashpad { | 33 namespace crashpad { |
33 | 34 |
34 namespace { | 35 namespace { |
35 | 36 |
36 //! \brief Sends an exception message to an exception port in accordance with | 37 //! \brief Sends an exception message to an exception port in accordance with |
37 //! the behavior and thread state flavor it’s registered to receive. | 38 //! the behavior and thread state flavor it’s registered to receive. |
38 //! | 39 //! |
39 //! \param[in] thread, task, exception, code, code_count These parameters will | 40 //! \param[in] thread, task, exception, code, code_count These parameters will |
40 //! be passed to the exception handler as appropriate. | 41 //! be passed to the exception handler as appropriate. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 false); | 233 false); |
233 } | 234 } |
234 } | 235 } |
235 } | 236 } |
236 | 237 |
237 LOG_IF(WARNING, !success) | 238 LOG_IF(WARNING, !success) |
238 << "SimulateCrash did not find an appropriate exception handler"; | 239 << "SimulateCrash did not find an appropriate exception handler"; |
239 } | 240 } |
240 | 241 |
241 } // namespace crashpad | 242 } // namespace crashpad |
OLD | NEW |