diff options
author | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:45:20 +0000 |
---|---|---|
committer | Marcos Pividori <mpividori@google.com> | 2016-12-13 17:45:20 +0000 |
commit | c59b692c85e0b75ffb3168c2dbec2a0280886c9b (patch) | |
tree | cec0e0d25a453d4860ebc832fdc9f7e8f80e4389 /llvm/lib/Fuzzer/FuzzerUtil.h | |
parent | 3462cac9afb58c5355f47ecfc8ce1c5dcae85a0a (diff) | |
download | bcm5719-llvm-c59b692c85e0b75ffb3168c2dbec2a0280886c9b.tar.gz bcm5719-llvm-c59b692c85e0b75ffb3168c2dbec2a0280886c9b.zip |
[libFuzzer] Improve Signal Handler interface.
Add new flags to FuzzingOptions to represent the different conditions
on the signal handling. These options are passed when calling
SetSignalHandler().
This changes simplify the implementation of Windows's exception
handling. Now we can define a unique handler for all the exceptions.
Differential Revision: https://reviews.llvm.org/D27238
llvm-svn: 289557
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerUtil.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerUtil.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h index eb425371a8f..c237379b3ac 100644 --- a/llvm/lib/Fuzzer/FuzzerUtil.h +++ b/llvm/lib/Fuzzer/FuzzerUtil.h @@ -43,15 +43,7 @@ int NumberOfCpuCores(); bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out); // Platform specific functions. -void SetTimer(int Seconds); - -void SetSigSegvHandler(); -void SetSigBusHandler(); -void SetSigAbrtHandler(); -void SetSigIllHandler(); -void SetSigFpeHandler(); -void SetSigIntHandler(); -void SetSigTermHandler(); +void SetSignalHandler(const FuzzingOptions& Options); void SleepSeconds(int Seconds); |