summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-09-10 23:11:44 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-09-10 23:11:44 -0400
commit7d24ceab85d64c5e9dcb4963d91d123d8303ef30 (patch)
tree977db96dcf3d483d1cdc4a218a2f0fd8ff245cb2 /main.cxx
parenteacb10cec9899c79ae1e122a7b6e50106928a295 (diff)
parent936eeb672167eaec2e5d8e9d7cf7fe9e962efe58 (diff)
downloadsystemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.tar.gz
systemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.tar.xz
systemtap-steved-7d24ceab85d64c5e9dcb4963d91d123d8303ef30.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap: added Handlers description, more cleanup Ensure that "stap -l ..." only prints probe names, not variables.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/main.cxx b/main.cxx
index 634feb03..563e4b01 100644
--- a/main.cxx
+++ b/main.cxx
@@ -182,14 +182,15 @@ printscript(systemtap_session& s, ostream& o)
if (seen.find (pp) == seen.end())
{
o << pp;
- // This list will be empty unless s.unoptimized = true -- i.e., -L mode
- for (unsigned j=0; j<p->locals.size(); j++)
- {
- o << " ";
- vardecl* v = p->locals[j];
- v->printsig (o);
- }
- o << endl;
+ // Print the locals for -L mode only
+ if (s.unoptimized)
+ for (unsigned j=0; j<p->locals.size(); j++)
+ {
+ o << " ";
+ vardecl* v = p->locals[j];
+ v->printsig (o);
+ }
+ o << endl;
seen.insert (pp);
}
}