]> sourceware.org Git - systemtap.git/commitdiff
PR14731: fix PR12022 regression for synthetic foreach()
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 16 Oct 2012 18:43:52 +0000 (14:43 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 16 Oct 2012 18:43:52 +0000 (14:43 -0400)
* elaborate.cxx (add_global_var_display): For foreach_loop created
  for otherwise-unused global, initialize sort_aggr => sc_none, the
  same way the parser would.

elaborate.cxx

index 7686335eeecb3c91dd7ad1ee7590c213741e8816..633e0c9937e78e60c89c706d7aa1e2d58de989c9 100644 (file)
@@ -1764,6 +1764,7 @@ void add_global_var_display (systemtap_session& s)
          foreach_loop* fe = new foreach_loop;
          fe->sort_direction = -1; // imply decreasing sort on value
          fe->sort_column = 0;     // as in   foreach ([a,b,c] in array-) { }
+         fe->sort_aggr = sc_none; // as in default @count
          fe->value = NULL;
          fe->limit = NULL;
          fe->tok = l->tok;
This page took 0.037098 seconds and 5 git commands to generate.