mac dump_syms: fix -d option

This is a follow-up to 3c70e0145e 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 <jperaza@chromium.org>
This commit is contained in:
Mark Mentovai 2021-08-18 09:53:25 -04:00
parent 3c70e0145e
commit 524a6249f0

View file

@ -214,7 +214,7 @@ static void SetupOptions(int argc, const char *argv[], Options *options) {
extern int optind; extern int optind;
signed char ch; 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) { switch (ch) {
case 'i': case 'i':
options->header_only = true; options->header_only = true;
@ -241,6 +241,7 @@ static void SetupOptions(int argc, const char *argv[], Options *options) {
break; break;
case 'd': case 'd':
options->handle_inlines = true; options->handle_inlines = true;
break;
case '?': case '?':
case 'h': case 'h':
Usage(argc, argv); Usage(argc, argv);