1 //===-- sanitizer_dbghelp.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 // Wrappers for lazy loaded dbghelp.dll. Provides function pointers and a
10 // callback to initialize them.
12 //===----------------------------------------------------------------------===//
14 #ifndef SANITIZER_SYMBOLIZER_WIN_H
15 #define SANITIZER_SYMBOLIZER_WIN_H
17 #if !SANITIZER_WINDOWS
18 #error "sanitizer_dbghelp.h is a Windows-only header"
21 #define WIN32_LEAN_AND_MEAN
25 namespace __sanitizer
{
27 extern decltype(::StackWalk64
) *StackWalk64
;
28 extern decltype(::SymCleanup
) *SymCleanup
;
29 extern decltype(::SymFromAddr
) *SymFromAddr
;
30 extern decltype(::SymFunctionTableAccess64
) *SymFunctionTableAccess64
;
31 extern decltype(::SymGetLineFromAddr64
) *SymGetLineFromAddr64
;
32 extern decltype(::SymGetModuleBase64
) *SymGetModuleBase64
;
33 extern decltype(::SymGetSearchPathW
) *SymGetSearchPathW
;
34 extern decltype(::SymInitialize
) *SymInitialize
;
35 extern decltype(::SymSetOptions
) *SymSetOptions
;
36 extern decltype(::SymSetSearchPathW
) *SymSetSearchPathW
;
37 extern decltype(::UnDecorateSymbolName
) *UnDecorateSymbolName
;
39 } // namespace __sanitizer
41 #endif // SANITIZER_SYMBOLIZER_WIN_H