From 5ae317319bf3249df2e94a23e81d5881cb28716e Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sun, 26 Oct 2008 08:41:49 -0400 Subject: partial revert of 212a56 --- elaborate.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index 38ce014e..6e01e813 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1147,8 +1147,9 @@ semantic_pass_symbols (systemtap_session& s) // Keep unread global variables for probe end value display. void add_global_var_display (systemtap_session& s) { - if (s.listing_mode || s.guru_mode) return; // avoid end probe - //in listings_mode or guru_mode + // Don't generate synthetic end probes when in listings mode; + // it would clutter up the list of probe points with "end ...". + if (s.listing_mode) return; varuse_collecting_visitor vut; for (unsigned i=0; iglobals->name + // for a matching with l->name, then "continue;" to skip it. + print_format* pf = new print_format; probe* p = new probe; probe_point* pl = new probe_point; -- cgit