]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
handle REVIEW.5
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 31 Mar 2026 21:36:31 +0000 (17:36 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Tue, 31 Mar 2026 21:36:31 +0000 (17:36 -0400)
src/stackprof.cxx

index 42500bf29f75fd1f217326c432f200ca1b60fd94..80daea433a7041a9cd9139b67f5416928718aa3c 100644 (file)
@@ -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;