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 #include <getopt.h> | 15 #include <getopt.h> |
16 #include <libgen.h> | 16 #include <libgen.h> |
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 | 18 |
19 #include <map> | 19 #include <map> |
20 #include <string> | 20 #include <string> |
21 | 21 |
22 #include "base/files/file_path.h" | 22 #include "base/files/file_path.h" |
23 #include "base/logging.h" | 23 #include "base/logging.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "client/crash_report_database.h" | 25 #include "client/crash_report_database.h" |
26 #include "tools/tool_support.h" | 26 #include "tools/tool_support.h" |
| 27 #include "handler/crash_report_upload_thread.h" |
27 #include "handler/mac/crash_report_exception_handler.h" | 28 #include "handler/mac/crash_report_exception_handler.h" |
28 #include "handler/mac/crash_report_upload_thread.h" | |
29 #include "handler/mac/exception_handler_server.h" | 29 #include "handler/mac/exception_handler_server.h" |
30 #include "util/mach/child_port_handshake.h" | 30 #include "util/mach/child_port_handshake.h" |
31 #include "util/posix/close_stdio.h" | 31 #include "util/posix/close_stdio.h" |
32 #include "util/stdlib/map_insert.h" | 32 #include "util/stdlib/map_insert.h" |
33 #include "util/stdlib/string_number_conversion.h" | 33 #include "util/stdlib/string_number_conversion.h" |
34 #include "util/string/split_string.h" | 34 #include "util/string/split_string.h" |
35 #include "util/synchronization/semaphore.h" | 35 #include "util/synchronization/semaphore.h" |
36 | 36 |
37 namespace crashpad { | 37 namespace crashpad { |
38 namespace { | 38 namespace { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 return EXIT_SUCCESS; | 180 return EXIT_SUCCESS; |
181 } | 181 } |
182 | 182 |
183 } // namespace | 183 } // namespace |
184 } // namespace crashpad | 184 } // namespace crashpad |
185 | 185 |
186 int main(int argc, char* argv[]) { | 186 int main(int argc, char* argv[]) { |
187 return crashpad::HandlerMain(argc, argv); | 187 return crashpad::HandlerMain(argc, argv); |
188 } | 188 } |
OLD | NEW |