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

Unified Diff: third_party/crashpad/crashpad/tools/generate_dump.cc

Issue 2754553002: Update Crashpad to 18d70acf81df49cc10b00bcc67c1ec64e16bd9d0 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/tools/generate_dump.cc
diff --git a/third_party/crashpad/crashpad/tools/generate_dump.cc b/third_party/crashpad/crashpad/tools/generate_dump.cc
index 11fe0ca535a246c0affc822da5f2691645451b96..b98b1f4ffb3d94051486a7794588d7c3ef36c390 100644
--- a/third_party/crashpad/crashpad/tools/generate_dump.cc
+++ b/third_party/crashpad/crashpad/tools/generate_dump.cc
@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include <fcntl.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
@@ -48,12 +47,6 @@
namespace crashpad {
namespace {
-struct Options {
- std::string dump_path;
- pid_t pid;
- bool suspend;
-};
-
void Usage(const base::FilePath& me) {
fprintf(stderr,
"Usage: %" PRFilePath " [OPTION]... PID\n"
@@ -85,7 +78,11 @@ int GenerateDumpMain(int argc, char* argv[]) {
kOptionVersion = -3,
};
- Options options = {};
+ struct {
+ std::string dump_path;
+ pid_t pid;
+ bool suspend;
+ } options = {};
options.suspend = true;
const option long_options[] = {
« no previous file with comments | « third_party/crashpad/crashpad/tools/crashpad_http_upload.md ('k') | third_party/crashpad/crashpad/tools/tool_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698