Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: handler/mac/main.cc

Issue 1022663002: Add crashpad_database_util and its man page (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « handler/mac/crashpad_handler.ad ('k') | tools/crashpad_database_util.ad » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 }; 70 };
71 71
72 struct { 72 struct {
73 std::map<std::string, std::string> annotations; 73 std::map<std::string, std::string> annotations;
74 std::string url; 74 std::string url;
75 const char* database; 75 const char* database;
76 int handshake_fd; 76 int handshake_fd;
77 } options = {}; 77 } options = {};
78 options.handshake_fd = -1; 78 options.handshake_fd = -1;
79 79
80 const struct option long_options[] = { 80 const option long_options[] = {
81 {"annotation", required_argument, nullptr, kOptionAnnotation}, 81 {"annotation", required_argument, nullptr, kOptionAnnotation},
82 {"database", required_argument, nullptr, kOptionDatabase}, 82 {"database", required_argument, nullptr, kOptionDatabase},
83 {"handshake-fd", required_argument, nullptr, kOptionHandshakeFD}, 83 {"handshake-fd", required_argument, nullptr, kOptionHandshakeFD},
84 {"url", required_argument, nullptr, kOptionURL}, 84 {"url", required_argument, nullptr, kOptionURL},
85 {"help", no_argument, nullptr, kOptionHelp}, 85 {"help", no_argument, nullptr, kOptionHelp},
86 {"version", no_argument, nullptr, kOptionVersion}, 86 {"version", no_argument, nullptr, kOptionVersion},
87 {nullptr, 0, nullptr, 0}, 87 {nullptr, 0, nullptr, 0},
88 }; 88 };
89 89
90 int opt; 90 int opt;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 return EXIT_SUCCESS; 183 return EXIT_SUCCESS;
184 } 184 }
185 185
186 } // namespace 186 } // namespace
187 } // namespace crashpad 187 } // namespace crashpad
188 188
189 int main(int argc, char* argv[]) { 189 int main(int argc, char* argv[]) {
190 return crashpad::HandlerMain(argc, argv); 190 return crashpad::HandlerMain(argc, argv);
191 } 191 }
OLDNEW
« no previous file with comments | « handler/mac/crashpad_handler.ad ('k') | tools/crashpad_database_util.ad » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698