diff options
author | fche <fche> | 2005-08-16 14:04:02 +0000 |
---|---|---|
committer | fche <fche> | 2005-08-16 14:04:02 +0000 |
commit | ae56fdddab1cdf3304d7de6e93315ff6452e4ad1 (patch) | |
tree | 57f7954d249cb81c77661c922a481a94333db45c | |
parent | 7c4d1d0de413490eab600d5b29a807e8a17489d2 (diff) | |
download | systemtap-steved-ae56fdddab1cdf3304d7de6e93315ff6452e4ad1.tar.gz systemtap-steved-ae56fdddab1cdf3304d7de6e93315ff6452e4ad1.tar.xz systemtap-steved-ae56fdddab1cdf3304d7de6e93315ff6452e4ad1.zip |
2005-08-16 Frank Ch. Eigler <fche@elastic.org>
* main.cxx: Don't print library parse trees if last_pass=1.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | main.cxx | 11 | ||||
-rw-r--r-- | staptree.cxx | 4 |
3 files changed, 12 insertions, 7 deletions
@@ -1,3 +1,7 @@ +2005-08-16 Frank Ch. Eigler <fche@elastic.org> + + * main.cxx: Don't print library parse trees if last_pass=1. + 2005-08-14 Roland McGrath <roland@redhat.com> * systemtap.spec.in: Update elfutils_version requirement to 0.113; @@ -307,11 +307,12 @@ main (int argc, char * const argv []) cout << "# parse tree dump" << endl; s.user_file->print (cout); cout << endl; - for (unsigned i=0; i<s.library_files.size(); i++) - { - s.library_files[i]->print (cout); - cout << endl; - } + if (s.verbose) + for (unsigned i=0; i<s.library_files.size(); i++) + { + s.library_files[i]->print (cout); + cout << endl; + } } // syntax errors, if any, are already printed diff --git a/staptree.cxx b/staptree.cxx index eb811e49..843f96b7 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -220,8 +220,8 @@ void post_crement::print (ostream& o) void ternary_expression::print (ostream& o) { - o << "(" << *cond << ") ? (" - << *truevalue << ") : (" + o << "(" << *cond << ")?(" + << *truevalue << "):(" << *falsevalue << ")"; } |