From ae56fdddab1cdf3304d7de6e93315ff6452e4ad1 Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 16 Aug 2005 14:04:02 +0000 Subject: [PATCH] 2005-08-16 Frank Ch. Eigler * main.cxx: Don't print library parse trees if last_pass=1. --- ChangeLog | 4 ++++ main.cxx | 11 ++++++----- staptree.cxx | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 74accbf01..bb0fd0f79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-16 Frank Ch. Eigler + + * main.cxx: Don't print library parse trees if last_pass=1. + 2005-08-14 Roland McGrath * systemtap.spec.in: Update elfutils_version requirement to 0.113; diff --git a/main.cxx b/main.cxx index 99be67dae..16d2df372 100644 --- a/main.cxx +++ b/main.cxx @@ -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; iprint (cout); - cout << endl; - } + if (s.verbose) + for (unsigned i=0; iprint (cout); + cout << endl; + } } // syntax errors, if any, are already printed diff --git a/staptree.cxx b/staptree.cxx index eb811e496..843f96b79 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 << ")"; } -- 2.43.5