From 83d7fcdcf15d300c7d6079b0c90076d8c365078c Mon Sep 17 00:00:00 2001 From: dsmith Date: Thu, 30 Nov 2006 16:09:09 +0000 Subject: 2006-11-30 David Smith * main.cxx (printscript): Prints global embedded code. Not printing the global embedded code was causing bad caching behavior. --- ChangeLog | 6 ++++++ main.cxx | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9de30f63..0ed341c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-30 David Smith + + * main.cxx (printscript): Prints global embedded code. Not + printing the global embedded code was causing bad caching + behavior. + 2006-11-29 David Smith * tapsets.cxx (struct dwarf_var_expanding_copy_visitor): Added diff --git a/main.cxx b/main.cxx index af73715e..00d64c71 100644 --- a/main.cxx +++ b/main.cxx @@ -108,6 +108,15 @@ usage (systemtap_session& s, int exitcode) static void printscript(systemtap_session& s, ostream& o) { + if (s.embeds.size() > 0) + o << "# global embedded code" << endl; + for (unsigned i=0; iprint (o); + o << endl; + } + if (s.globals.size() > 0) o << "# globals" << endl; for (unsigned i=0; i