diff options
author | fche <fche> | 2005-07-15 14:49:59 +0000 |
---|---|---|
committer | fche <fche> | 2005-07-15 14:49:59 +0000 |
commit | eaf134e777a0c1e31e3351a5bba0784f2eefda8e (patch) | |
tree | d36e833cd7225d238e6c63a86de1076ce465a704 /main.cxx | |
parent | 92ade41d92c63f6909dcd5982bdc9db6ee10ff5d (diff) | |
download | systemtap-steved-eaf134e777a0c1e31e3351a5bba0784f2eefda8e.tar.gz systemtap-steved-eaf134e777a0c1e31e3351a5bba0784f2eefda8e.tar.xz systemtap-steved-eaf134e777a0c1e31e3351a5bba0784f2eefda8e.zip |
2005-07-15 Frank Ch. Eigler <fche@redhat.com>
* Makefile.am (install-data-local): Correct typo.
* buildrun.cxx (compile_pass): Ditto.
* main.cxx (main): Print errors if passes 4 or 5 fail.
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -263,6 +263,7 @@ main (int argc, char * const argv []) } } + // syntax errors, if any, are already printed if (s.verbose) clog << "Pass 1: parsed user script and " << s.library_files.size() << " library script(s)." << endl; @@ -325,6 +326,7 @@ main (int argc, char * const argv []) << s.functions.size() << " function(s), " << s.globals.size() << " global(s)." << endl; + // semantic errors, if any, are already printed if (rc || s.last_pass == 2) goto cleanup; // PASS 3: TRANSLATION @@ -341,16 +343,25 @@ main (int argc, char * const argv []) << s.translated_source << "\"" << endl; + // translation errors, if any, are already printed if (rc || s.last_pass == 3) goto cleanup; // PASS 4: COMPILATION rc = compile_pass (s); + if (rc) + cerr << "Pass 4: compilation failed. " + << "Try again with '-v' (verbose) option." << endl; + if (rc || s.last_pass == 4) goto cleanup; // PASS 5: RUN rc = run_pass (s); + if (rc) + cerr << "Pass 5: run failed. " + << "Try again with '-v' (verbose) option." << endl; + // if (rc) goto cleanup; cleanup: |