| 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 27 matching lines...) Expand all  Loading... | 
|   38 namespace { |   38 namespace { | 
|   39  |   39  | 
|   40 void Usage(const std::string& me) { |   40 void Usage(const std::string& me) { | 
|   41   fprintf(stderr, |   41   fprintf(stderr, | 
|   42 "Usage: %s [OPTION]...\n" |   42 "Usage: %s [OPTION]...\n" | 
|   43 "Crashpad's exception handler server.\n" |   43 "Crashpad's exception handler server.\n" | 
|   44 "\n" |   44 "\n" | 
|   45 "      --annotation=KEY=VALUE  set a process annotation in each crash report\n" |   45 "      --annotation=KEY=VALUE  set a process annotation in each crash report\n" | 
|   46 "      --database=PATH         store the crash report database at PATH\n" |   46 "      --database=PATH         store the crash report database at PATH\n" | 
|   47 "      --handshake-fd=FD       establish communication with the client over FD\n
     " |   47 "      --handshake-fd=FD       establish communication with the client over FD\n
     " | 
|   48 "      --url=URL               send crash reports to this Breakpad server URL\n" |   48 "      --url=URL               send crash reports to this Breakpad server URL,\n
     " | 
 |   49 "                              only if uploads are enabled for the database\n" | 
|   49 "      --help                  display this help and exit\n" |   50 "      --help                  display this help and exit\n" | 
|   50 "      --version               output version information and exit\n", |   51 "      --version               output version information and exit\n", | 
|   51           me.c_str()); |   52           me.c_str()); | 
|   52   ToolSupport::UsageTail(me); |   53   ToolSupport::UsageTail(me); | 
|   53 } |   54 } | 
|   54  |   55  | 
|   55 int HandlerMain(int argc, char* argv[]) { |   56 int HandlerMain(int argc, char* argv[]) { | 
|   56   const std::string me(basename(argv[0])); |   57   const std::string me(basename(argv[0])); | 
|   57  |   58  | 
|   58   enum OptionFlags { |   59   enum OptionFlags { | 
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  181  |  182  | 
|  182   return EXIT_SUCCESS; |  183   return EXIT_SUCCESS; | 
|  183 } |  184 } | 
|  184  |  185  | 
|  185 }  // namespace |  186 }  // namespace | 
|  186 }  // namespace crashpad |  187 }  // namespace crashpad | 
|  187  |  188  | 
|  188 int main(int argc, char* argv[]) { |  189 int main(int argc, char* argv[]) { | 
|  189   return crashpad::HandlerMain(argc, argv); |  190   return crashpad::HandlerMain(argc, argv); | 
|  190 } |  191 } | 
| OLD | NEW |