From 524a6249f0b4dc4e24d38a29a36e1c8ae611d28f Mon Sep 17 00:00:00 2001 From: Mark Mentovai Date: Wed, 18 Aug 2021 09:53:25 -0400 Subject: [PATCH] mac dump_syms: fix -d option This is a follow-up to 3c70e0145e5c to make -d work. Bug: chromium:1190878,chromium:1238693 Change-Id: Ie0c6c663c98491462fca1aa992503037f19cefa9 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3103526 Reviewed-by: Joshua Peraza --- src/tools/mac/dump_syms/dump_syms_tool.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/mac/dump_syms/dump_syms_tool.cc b/src/tools/mac/dump_syms/dump_syms_tool.cc index fcbb9169..9ff5140b 100644 --- a/src/tools/mac/dump_syms/dump_syms_tool.cc +++ b/src/tools/mac/dump_syms/dump_syms_tool.cc @@ -214,7 +214,7 @@ static void SetupOptions(int argc, const char *argv[], Options *options) { extern int optind; signed char ch; - while ((ch = getopt(argc, (char * const*)argv, "ia:g:chr?")) != -1) { + while ((ch = getopt(argc, (char * const*)argv, "ia:g:crd?h")) != -1) { switch (ch) { case 'i': options->header_only = true; @@ -241,6 +241,7 @@ static void SetupOptions(int argc, const char *argv[], Options *options) { break; case 'd': options->handle_inlines = true; + break; case '?': case 'h': Usage(argc, argv);