1 //===-- sanitizer_symbolizer_mac.h ------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file is shared between various sanitizers' runtime libraries.
11 // Header for Mac-specific "atos" symbolizer.
12 //===----------------------------------------------------------------------===//
14 #ifndef SANITIZER_SYMBOLIZER_MAC_H
15 #define SANITIZER_SYMBOLIZER_MAC_H
17 #include "sanitizer_platform.h"
20 #include "sanitizer_symbolizer_internal.h"
22 namespace __sanitizer
{
24 class DlAddrSymbolizer
: public SymbolizerTool
{
26 bool SymbolizePC(uptr addr
, SymbolizedStack
*stack
) override
;
27 bool SymbolizeData(uptr addr
, DataInfo
*info
) override
;
30 class AtosSymbolizerProcess
;
32 class AtosSymbolizer
: public SymbolizerTool
{
34 explicit AtosSymbolizer(const char *path
, LowLevelAllocator
*allocator
);
36 bool SymbolizePC(uptr addr
, SymbolizedStack
*stack
) override
;
37 bool SymbolizeData(uptr addr
, DataInfo
*info
) override
;
40 AtosSymbolizerProcess
*process_
;
43 } // namespace __sanitizer
45 #endif // SANITIZER_MAC
47 #endif // SANITIZER_SYMBOLIZER_MAC_H