]> sourceware.org Git - systemtap.git/commitdiff
Disregard all pass-2 errors in listing mode
authorJosh Stone <jistone@redhat.com>
Tue, 5 Feb 2013 20:34:13 +0000 (12:34 -0800)
committerJosh Stone <jistone@redhat.com>
Tue, 5 Feb 2013 21:21:44 +0000 (13:21 -0800)
* elaborate.cxx (semantic_pass): In listing mode, the only rc we care
  about is whether any probes were discovered.

elaborate.cxx

index d451b830e929a3ae14e40e99d936dc1d0a514b55..002f77692550a52295b3ce686272379cdb70ee45 100644 (file)
@@ -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;
 }
This page took 0.033457 seconds and 5 git commands to generate.