summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2008-08-28 22:49:01 -0400
committerWenji Huang <wenji.huang@oracle.com>2008-08-28 22:49:01 -0400
commit4576d5d3faa3889fda8d6cef2664aa8dfddd61af (patch)
treeec65d69ca114abab665e54a7683beb004116bfa0 /main.cxx
parent84f00e279d98edba986225386c7183db3c5968b0 (diff)
downloadsystemtap-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.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index 27926447..51252e61 100644
--- a/main.cxx
+++ b/main.cxx
@@ -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)
{