xref: /freebsd-src/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/segv_handler_fuchsia.cpp (revision bdd1243df58e60e85101c09001d9812a789b6bc4)
1e8d8bef9SDimitry Andric //===-- segv_handler_fuchsia.cpp --------------------------------*- C++ -*-===//
2e8d8bef9SDimitry Andric //
3e8d8bef9SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e8d8bef9SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5e8d8bef9SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e8d8bef9SDimitry Andric //
7e8d8bef9SDimitry Andric //===----------------------------------------------------------------------===//
8e8d8bef9SDimitry Andric 
9e8d8bef9SDimitry Andric #include "gwp_asan/optional/segv_handler.h"
10e8d8bef9SDimitry Andric 
11e8d8bef9SDimitry Andric // GWP-ASan on Fuchsia doesn't currently support signal handlers.
12e8d8bef9SDimitry Andric 
13e8d8bef9SDimitry Andric namespace gwp_asan {
14e8d8bef9SDimitry Andric namespace segv_handler {
installSignalHandlers(gwp_asan::GuardedPoolAllocator *,Printf_t,backtrace::PrintBacktrace_t,backtrace::SegvBacktrace_t,bool)15e8d8bef9SDimitry Andric void installSignalHandlers(gwp_asan::GuardedPoolAllocator * /* GPA */,
16e8d8bef9SDimitry Andric                            Printf_t /* Printf */,
17e8d8bef9SDimitry Andric                            backtrace::PrintBacktrace_t /* PrintBacktrace */,
18*bdd1243dSDimitry Andric                            backtrace::SegvBacktrace_t /* SegvBacktrace */,
19*bdd1243dSDimitry Andric                            bool /* Recoverable */) {}
20e8d8bef9SDimitry Andric 
uninstallSignalHandlers()21e8d8bef9SDimitry Andric void uninstallSignalHandlers() {}
22e8d8bef9SDimitry Andric } // namespace segv_handler
23e8d8bef9SDimitry Andric } // namespace gwp_asan
24