diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2008-08-28 22:49:01 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2008-08-28 22:49:01 -0400 |
commit | 4576d5d3faa3889fda8d6cef2664aa8dfddd61af (patch) | |
tree | ec65d69ca114abab665e54a7683beb004116bfa0 /main.cxx | |
parent | 84f00e279d98edba986225386c7183db3c5968b0 (diff) | |
download | systemtap-steved-4576d5d3faa3889fda8d6cef2664aa8dfddd61af.tar.gz systemtap-steved-4576d5d3faa3889fda8d6cef2664aa8dfddd61af.tar.xz systemtap-steved-4576d5d3faa3889fda8d6cef2664aa8dfddd61af.zip |
PR6731: improve listing mode to list variables
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -179,6 +179,18 @@ printscript(systemtap_session& s, ostream& o) if (seen.find (pp) == seen.end()) { o << pp << endl; + if (s.verbose) { + for (unsigned j=0; j<p->locals.size(); j++) + { + vardecl* v = p->locals[j]; + if (j>0) + o << ", "; + else + o << " "; + v->printsig (o); + } + o << endl; + } seen.insert (pp); } } @@ -581,6 +593,7 @@ main (int argc, char * const argv []) case 'l': s.suppress_warnings = true; s.listing_mode = true; + s.unoptimized = true; s.last_pass = 2; if (have_script) { |