diff options
author | David Smith <dsmith@redhat.com> | 2009-03-12 12:58:49 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-03-12 12:58:49 -0500 |
commit | 2791f774da562b5a2bfc976baad246999da29ea6 (patch) | |
tree | d1ece2d650e6307d86ed6269d4afffbaf30e05c3 /main.cxx | |
parent | 976f6b6a6fae081d1d72d06457d64af87db789ef (diff) | |
parent | 96b030fe8a0bb0297d23638e2975a3e9eb2b85b6 (diff) | |
download | systemtap-steved-2791f774da562b5a2bfc976baad246999da29ea6.tar.gz systemtap-steved-2791f774da562b5a2bfc976baad246999da29ea6.tar.xz systemtap-steved-2791f774da562b5a2bfc976baad246999da29ea6.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap into pr7043
Diffstat (limited to 'main.cxx')
-rw-r--r-- | main.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -134,6 +134,8 @@ usage (systemtap_session& s, int exitcode) #endif // Formerly present --ignore-{vmlinux,dwarf} options are for testsuite use // only, and don't belong in the eyesight of a plain user. + << " --skip-badvars" << endl + << " overlook context of bad $ variables" << endl << endl ; @@ -187,13 +189,16 @@ printscript(systemtap_session& s, ostream& o) { o << pp; // Print the locals for -L mode only - if (s.unoptimized) + if (s.unoptimized) { for (unsigned j=0; j<p->locals.size(); j++) { o << " "; vardecl* v = p->locals[j]; v->printsig (o); } + // Print arguments of probe if there + p->printargs(o); + } o << endl; seen.insert (pp); } @@ -428,12 +433,14 @@ main (int argc, char * const argv []) #define LONG_OPT_IGNORE_VMLINUX 3 #define LONG_OPT_IGNORE_DWARF 4 #define LONG_OPT_VERBOSE_PASS 5 +#define LONG_OPT_SKIP_BADVARS 6 // NB: also see find_hash(), usage(), switch stmt below, stap.1 man page static struct option long_options[] = { { "kelf", 0, &long_opt, LONG_OPT_KELF }, { "kmap", 2, &long_opt, LONG_OPT_KMAP }, { "ignore-vmlinux", 0, &long_opt, LONG_OPT_IGNORE_VMLINUX }, { "ignore-dwarf", 0, &long_opt, LONG_OPT_IGNORE_DWARF }, + { "skip-badvars", 0, &long_opt, LONG_OPT_SKIP_BADVARS }, { "vp", 1, &long_opt, LONG_OPT_VERBOSE_PASS }, { NULL, 0, NULL, 0 } }; @@ -695,6 +702,9 @@ main (int argc, char * const argv []) // NB: we don't do this: s.last_pass = strlen(optarg); break; } + case LONG_OPT_SKIP_BADVARS: + s.skip_badvars = true; + break; default: cerr << "Internal error parsing command arguments." << endl; usage(s, 1); |