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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // UniversalMachExcServer::Interface: | 61 // UniversalMachExcServer::Interface: |
62 virtual kern_return_t CatchMachException( | 62 virtual kern_return_t CatchMachException( |
63 exception_behavior_t behavior, | 63 exception_behavior_t behavior, |
64 exception_handler_t exception_port, | 64 exception_handler_t exception_port, |
65 thread_t thread, | 65 thread_t thread, |
66 task_t task, | 66 task_t task, |
67 exception_type_t exception, | 67 exception_type_t exception, |
68 const mach_exception_data_type_t* code, | 68 const mach_exception_data_type_t* code, |
69 mach_msg_type_number_t code_count, | 69 mach_msg_type_number_t code_count, |
70 thread_state_flavor_t* flavor, | 70 thread_state_flavor_t* flavor, |
71 const natural_t* old_state, | 71 ConstThreadState old_state, |
72 mach_msg_type_number_t old_state_count, | 72 mach_msg_type_number_t old_state_count, |
73 thread_state_t new_state, | 73 thread_state_t new_state, |
74 mach_msg_type_number_t* new_state_count, | 74 mach_msg_type_number_t* new_state_count, |
75 const mach_msg_trailer_t* trailer, | 75 const mach_msg_trailer_t* trailer, |
76 bool* destroy_complex_request) override { | 76 bool* destroy_complex_request) override { |
77 *destroy_complex_request = true; | 77 *destroy_complex_request = true; |
78 ++*exceptions_handled_; | 78 ++*exceptions_handled_; |
79 | 79 |
80 fprintf(options_.file, | 80 fprintf(options_.file, |
81 "%s: behavior %s, ", | 81 "%s: behavior %s, ", |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 return EXIT_SUCCESS; | 305 return EXIT_SUCCESS; |
306 } | 306 } |
307 | 307 |
308 } // namespace | 308 } // namespace |
309 } // namespace crashpad | 309 } // namespace crashpad |
310 | 310 |
311 int main(int argc, char* argv[]) { | 311 int main(int argc, char* argv[]) { |
312 return crashpad::CatchExceptionToolMain(argc, argv); | 312 return crashpad::CatchExceptionToolMain(argc, argv); |
313 } | 313 } |
OLD | NEW |