summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2005-07-15 14:49:59 +0000
committerfche <fche>2005-07-15 14:49:59 +0000
commiteaf134e777a0c1e31e3351a5bba0784f2eefda8e (patch)
treed36e833cd7225d238e6c63a86de1076ce465a704
parent92ade41d92c63f6909dcd5982bdc9db6ee10ff5d (diff)
downloadsystemtap-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.
-rw-r--r--ChangeLog6
-rw-r--r--Makefile.am2
-rw-r--r--Makefile.in2
-rw-r--r--buildrun.cxx1
-rw-r--r--main.cxx11
5 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a59d04a..961e903b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2005-07-14 Frank Ch. Eigler <fche@redhat.com>
* buildrun.cxx (compile_pass, run_pass): Get closer to a working
diff --git a/Makefile.am b/Makefile.am
index b2ba7b1f..efd1b0f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,7 @@ dist-hook:
install-data-local:
mkdir -p $(DESTDIR)$(pkgdatadir)
cp -rp $(srcdir)/runtime $(DESTDIR)$(pkgdatadir)
- find $(DESTDIR)$(pkgdatadir)/testsuite -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
+ find $(DESTDIR)$(pkgdatadir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
p=$(srcdir)/testsuite/parse
s=$(srcdir)/testsuite/sem
diff --git a/Makefile.in b/Makefile.in
index f7023074..5bdd8cfe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -745,7 +745,7 @@ dist-hook:
install-data-local:
mkdir -p $(DESTDIR)$(pkgdatadir)
cp -rp $(srcdir)/runtime $(DESTDIR)$(pkgdatadir)
- find $(DESTDIR)$(pkgdatadir)/testsuite -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
+ find $(DESTDIR)$(pkgdatadir) -name CVS -o -name '*~' -o -name '.#*' | xargs rm -rf
gcov:
@$(MAKE) clean CXXFLAGS="-g -fprofile-arcs -ftest-coverage" all check
diff --git a/buildrun.cxx b/buildrun.cxx
index 77ce283c..959db90f 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -47,6 +47,7 @@ compile_pass (systemtap_session& s)
{
// Assumes linux 2.6 kbuild
o << "CFLAGS += -Werror" << endl;
+ o << "CFLAGS += -I \"" << s.runtime_path << "\"" << endl;
o << "CFLAGS += -I \"" << s.runtime_path << "/relayfs\"" << endl;
o << "obj-m := " << s.module_name << ".o" << endl;
o.close ();
diff --git a/main.cxx b/main.cxx
index 69f87655..a35bbc9c 100644
--- a/main.cxx
+++ b/main.cxx
@@ -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: