This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/7035] -L mode should not suppress all errors


------- Additional Comments From wenji dot huang at oracle dot com  2008-11-25 02:06 -------
Update the patch to block "Pass x:" message.   Now
$ stap -rafda -l 'kernel.function("*")'
semantic error: libdwfl failure (missing kernel afda i686 debuginfo): No such
file or directory while resolving probe point kernel.function("*")

$ stap -L 'kernel.function("abcde")'
semantic error: no match while resolving probe point kernel.function("abcde")

Patch:
diff --git a/elaborate.cxx b/elaborate.cxx
index 7cbac31..0dd8062 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1446,9 +1446,6 @@ systemtap_session::print_error (const semantic_error& e)
   string message_str[2];
   string align_semantic_error ("        ");
 
-  // NB: we don't print error messages during listing mode.
-  if (listing_mode) return;
-
   // We generate two messages.  The second one ([1]) is printed
   // without token compression, for purposes of duplicate elimination.
   // This way, the same message that may be generated once with a
diff --git a/main.cxx b/main.cxx
index 406228a..40dbeec 100644
--- a/main.cxx
+++ b/main.cxx
@@ -937,7 +937,7 @@ main (int argc, char * const argv [])
            << endl;
     }
 
-  if (rc)
+  if (rc && !s.listing_mode)
     cerr << "Pass 1: parse failed.  "
          << "Try again with more '-v' (verbose) options."
          << endl;
@@ -965,7 +965,7 @@ main (int argc, char * const argv [])
                       << TIMESPRINT
                       << endl;
 
-  if (rc)
+  if (rc && !s.listing_mode)
     cerr << "Pass 2: analysis failed.  "
          << "Try again with more '-v' (verbose) options."
          << endl;


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=7035

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]