diff options
author | Alexander Potapenko <glider@google.com> | 2014-01-28 09:28:57 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2014-01-28 09:28:57 +0000 |
commit | 5819ad91e6543976f2f65f21715ac012bbe6b339 (patch) | |
tree | dffdda2869eef693773a97a905e080c4603d7852 /lib/sanitizer_common/sanitizer_flags.h | |
parent | 9aafd3036a6a7bfa2d63b59fd26c72b77978b719 (diff) |
[ASan] Move the signal handling-related flags to sanitizer_common.
This change is a part of refactoring intended to have common signal handling behavior in all tools.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.h b/lib/sanitizer_common/sanitizer_flags.h index 1f5b1461b..1df9a0048 100644 --- a/lib/sanitizer_common/sanitizer_flags.h +++ b/lib/sanitizer_common/sanitizer_flags.h @@ -58,6 +58,14 @@ struct CommonFlags { bool print_summary; // Check printf arguments. bool check_printf; + // If set, registers the tool's custom SEGV handler (both SIGBUS and SIGSEGV + // on OSX). + bool handle_segv; + // If set, allows user to register a SEGV handler even if the tool registers + // one. + bool allow_user_segv_handler; + // If set, uses alternate stack for signal handling. + bool use_sigaltstack; }; inline CommonFlags *common_flags() { |