summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authorRajan Arora <rarora@redhat.com>2009-03-11 18:44:21 -0400
committerRajan Arora <rarora@redhat.com>2009-03-11 18:58:30 -0400
commit3bd0d4df7ccfd9afe7771441b26d8baaaf180e29 (patch)
treeb8195f2cb1b61dee52acd701a47723abb7ecb59c /session.h
parente248aea9a04dd0d3c4e066afdca52176aaf9a536 (diff)
downloadsystemtap-steved-3bd0d4df7ccfd9afe7771441b26d8baaaf180e29.tar.gz
systemtap-steved-3bd0d4df7ccfd9afe7771441b26d8baaaf180e29.tar.xz
systemtap-steved-3bd0d4df7ccfd9afe7771441b26d8baaaf180e29.zip
PR 7071: Optional $context variables fix
* tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Substitute erroneous target symbol with literal 0 if session level flag, skip_badvars is set. * session.h (struct systemtap_session): New flag: skip_badvars. * main.cxx: Command line argument --skip-badvars added. * stap.1.in: Entry for new option --skip-badvars. * NEWS: Added blurb for new option now available. * testsuite/semok/badvar.stp: Test case to check added functionality.
Diffstat (limited to 'session.h')
-rw-r--r--session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/session.h b/session.h
index bc99385b..ec6c2e3e 100644
--- a/session.h
+++ b/session.h
@@ -123,6 +123,9 @@ struct systemtap_session
bool ignore_vmlinux;
bool ignore_dwarf;
+ // Skip bad $ vars
+ bool skip_badvars;
+
// temporary directory for module builds etc.
// hazardous - it is "rm -rf"'d at exit
std::string tmpdir;