diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-04-01 22:50:47 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-04-01 22:52:33 -0400 |
commit | dcfd7fed7088871f46d9da7183e485877fb2d81f (patch) | |
tree | 57a560603d3b095a9f3f2bc01500becdacf785d9 /translate.cxx | |
parent | 65ffc3f32328473cb74aa5c7eca7e46bb82bd7fb (diff) | |
download | systemtap-steved-dcfd7fed7088871f46d9da7183e485877fb2d81f.tar.gz systemtap-steved-dcfd7fed7088871f46d9da7183e485877fb2d81f.tar.xz systemtap-steved-dcfd7fed7088871f46d9da7183e485877fb2d81f.zip |
PR10019: --skip-badvars to suppress run-time memory errors too
* NEWS: Note this change.
* hash.cxx (find_script_hash): Add s.skip_badvars into hash.
* translate.cxx (translate_pass): Emit STP_SKIP_BADVARS.
* runtime/loc2c-runtime.h (DEREF_FAULT, STORE_DEREF_FAULT): Provide
dummy implementation if STP_SKIP_BADVARS.
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx index 47fffd1e..9085349e 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4955,6 +4955,8 @@ translate_pass (systemtap_session& s) s.op->newline() << "#define STP_OVERLOAD"; s.op->newline() << "#endif"; + s.op->newline() << "#define STP_SKIP_BADVARS " << (s.skip_badvars ? 1 : 0); + if (s.bulk_mode) s.op->newline() << "#define STP_BULKMODE"; |