diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-09-10 23:11:44 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-09-10 23:11:44 -0400 |
commit | 7d24ceab85d64c5e9dcb4963d91d123d8303ef30 (patch) | |
tree | 977db96dcf3d483d1cdc4a218a2f0fd8ff245cb2 /main.cxx | |
parent | eacb10cec9899c79ae1e122a7b6e50106928a295 (diff) | |
parent | 936eeb672167eaec2e5d8e9d7cf7fe9e962efe58 (diff) | |
download | systemtap-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.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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); } } |