This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/7035] -L mode should not suppress all errors
- From: "wenji dot huang at oracle dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 18 Nov 2008 05:53:44 -0000
- Subject: [Bug translator/7035] -L mode should not suppress all errors
- References: <20081117142513.7035.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wenji dot huang at oracle dot com 2008-11-18 05:53 -------
Current listing_mode (-l or -L) blocks all the errors. We can make -L out of
this restriction.
stap -r /sdfijsdfoidf -l 'kernel.function("*")' will still return 0.
stap -r /sdfijsdfoidf -L 'kernel.function("*")' will print error and return 1.
stap -r /sdfijsdfoidf -ul 'kernel.function("*")' will print error and return 1.
stap -L 'kernel.function("abcdef")' will print error and return 1.
diff --git a/elaborate.cxx b/elaborate.cxx
index 7cbac31..def4846 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -1446,8 +1446,8 @@ 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;
+ // NB: we don't print error messages during listing mode -l but during -L.
+ if (listing_mode && !unoptimized) return;
// We generate two messages. The second one ([1]) is printed
// without token compression, for purposes of duplicate elimination.
--
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.