From: Frank Ch. Eigler Date: Tue, 31 Mar 2026 21:36:31 +0000 (-0400) Subject: handle REVIEW.5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e83b2584daa42a1ca6f07daf4c05a2e1d30ba2f;p=thirdparty%2Felfutils.git handle REVIEW.5 --- diff --git a/src/stackprof.cxx b/src/stackprof.cxx index 42500bf2..80daea43 100644 --- a/src/stackprof.cxx +++ b/src/stackprof.cxx @@ -493,7 +493,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case 'G': - /* TODO(REVIEW.5): Error if -g is not set? */ + gmon = true; /* Automatically enable gmon mode if they set a gmon option. */ if (strcmp (arg, "none") == 0) gmon_hist_split = HIST_SPLIT_NONE; else if (strcmp (arg, "even") == 0) @@ -503,6 +503,7 @@ parse_opt (int key, char *arg, struct argp_state *state) break; case 'o': + gmon = true; output_dir = arg; break;