From f5b1b8bc86a3b9648b3506dc76ec1012fc3e11ff Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 5 Feb 2013 12:34:13 -0800 Subject: [PATCH] Disregard all pass-2 errors in listing mode * elaborate.cxx (semantic_pass): In listing mode, the only rc we care about is whether any probes were discovered. --- elaborate.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elaborate.cxx b/elaborate.cxx index d451b830e..002f77692 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1956,8 +1956,10 @@ semantic_pass (systemtap_session& s) } // PR11443 - if (s.listing_mode && s.probes.size() == 0) - rc ++; + // NB: listing mode only cares whether we have any probes, + // so all previous error conditions are disregarded. + if (s.listing_mode) + rc = s.probes.empty(); return rc; } -- 2.43.5