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

Side by Side Diff: tools/generate_dump.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 | « tools/crashpad_database_util.cc ('k') | tools/mac/catch_exception_tool.cc » ('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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 kOptionLastChar = 255, 69 kOptionLastChar = 255,
70 70
71 // Standard options. 71 // Standard options.
72 kOptionHelp = -2, 72 kOptionHelp = -2,
73 kOptionVersion = -3, 73 kOptionVersion = -3,
74 }; 74 };
75 75
76 Options options = {}; 76 Options options = {};
77 options.suspend = true; 77 options.suspend = true;
78 78
79 const struct option long_options[] = { 79 const option long_options[] = {
80 {"no-suspend", no_argument, nullptr, kOptionNoSuspend}, 80 {"no-suspend", no_argument, nullptr, kOptionNoSuspend},
81 {"output", required_argument, nullptr, kOptionOutput}, 81 {"output", required_argument, nullptr, kOptionOutput},
82 {"help", no_argument, nullptr, kOptionHelp}, 82 {"help", no_argument, nullptr, kOptionHelp},
83 {"version", no_argument, nullptr, kOptionVersion}, 83 {"version", no_argument, nullptr, kOptionVersion},
84 {nullptr, 0, nullptr, 0}, 84 {nullptr, 0, nullptr, 0},
85 }; 85 };
86 86
87 int opt; 87 int opt;
88 while ((opt = getopt_long(argc, argv, "o:r", long_options, nullptr)) != -1) { 88 while ((opt = getopt_long(argc, argv, "o:r", long_options, nullptr)) != -1) {
89 switch (opt) { 89 switch (opt) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 return EXIT_SUCCESS; 170 return EXIT_SUCCESS;
171 } 171 }
172 172
173 } // namespace 173 } // namespace
174 } // namespace crashpad 174 } // namespace crashpad
175 175
176 int main(int argc, char* argv[]) { 176 int main(int argc, char* argv[]) {
177 return crashpad::GenerateDumpMain(argc, argv); 177 return crashpad::GenerateDumpMain(argc, argv);
178 } 178 }
OLDNEW
« no previous file with comments | « tools/crashpad_database_util.cc ('k') | tools/mac/catch_exception_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698