diff options
author | Alexander Potapenko <glider@google.com> | 2014-01-31 13:10:07 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2014-01-31 13:10:07 +0000 |
commit | 4c26afdb206b13ae5cdc5e2a074a6cadc0d969a5 (patch) | |
tree | ec3f7f602ad4f68a2bef7b9765cf07d507f536fe /lib/asan/asan_internal.h | |
parent | 7c8ecc28166e5f23cc8479ebcf69effe9a006dad (diff) | |
download | compiler-rt-4c26afdb206b13ae5cdc5e2a074a6cadc0d969a5.tar.gz |
[ASan] Move the SIGSEGV/SIGBUS handling to sanitizer_common
This change is a part of refactoring intended to have common signal handling behavior in all tools.
This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r-- | lib/asan/asan_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h index f0c9a49a6..3914fbbd1 100644 --- a/lib/asan/asan_internal.h +++ b/lib/asan/asan_internal.h @@ -71,10 +71,10 @@ void ReplaceSystemMalloc(); void *AsanDoesNotSupportStaticLinkage(); void GetPcSpBp(void *context, uptr *pc, uptr *sp, uptr *bp); +void AsanOnSIGSEGV(int, void *siginfo, void *context); void MaybeReexec(); bool AsanInterceptsSignal(int signum); -void InstallSignalHandlers(); void ReadContextStack(void *context, uptr *stack, uptr *ssize); void AsanPlatformThreadInit(); void StopInitOrderChecking(); |