summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorRajan Arora <rarora@redhat.com>2008-10-25 19:21:34 -0400
committerRajan Arora <rarora@redhat.com>2008-10-25 19:21:34 -0400
commit212a566e493f285d89ebcc08961f44485dc55db0 (patch)
tree46a1d3b35e46edaa5a8a34aa11aa330a82995484 /elaborate.cxx
parentd9d9f8523cb7fe27d778a04f6bcc3c7275df5db6 (diff)
downloadsystemtap-steved-212a566e493f285d89ebcc08961f44485dc55db0.tar.gz
systemtap-steved-212a566e493f285d89ebcc08961f44485dc55db0.tar.xz
systemtap-steved-212a566e493f285d89ebcc08961f44485dc55db0.zip
Unused global variables display in guru mode fix (rh bz 468139)
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index e4251f2a..38ce014e 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1147,7 +1147,8 @@ 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) return; // avoid end probe in listings_mode
+ if (s.listing_mode || s.guru_mode) return; // avoid end probe
+ //in listings_mode or guru_mode
varuse_collecting_visitor vut;
for (unsigned i=0; i<s.probes.size(); i++)