From: Frank Ch. Eigler Date: Tue, 16 Oct 2012 18:43:52 +0000 (-0400) Subject: PR14731: fix PR12022 regression for synthetic foreach() X-Git-Tag: release-2.1~352 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1cdda92dd325e00f86e5f554c813e4e88fec5c51;p=systemtap.git PR14731: fix PR12022 regression for synthetic foreach() * 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. --- diff --git a/elaborate.cxx b/elaborate.cxx index 7686335ee..633e0c993 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -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;