]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/lib/sanitizer_common/sanitizer_dbghelp.h
1 //===-- sanitizer_dbghelp.h ------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Wrappers for lazy loaded dbghelp.dll. Provides function pointers and a
11 // callback to initialize them.
13 //===----------------------------------------------------------------------===//
15 #ifndef SANITIZER_SYMBOLIZER_WIN_H
16 #define SANITIZER_SYMBOLIZER_WIN_H
18 #if !SANITIZER_WINDOWS
19 #error "sanitizer_dbghelp.h is a Windows-only header"
22 #define WIN32_LEAN_AND_MEAN
26 namespace __sanitizer
{
28 extern decltype(::StackWalk64
) *StackWalk64
;
29 extern decltype(::SymCleanup
) *SymCleanup
;
30 extern decltype(::SymFromAddr
) *SymFromAddr
;
31 extern decltype(::SymFunctionTableAccess64
) *SymFunctionTableAccess64
;
32 extern decltype(::SymGetLineFromAddr64
) *SymGetLineFromAddr64
;
33 extern decltype(::SymGetModuleBase64
) *SymGetModuleBase64
;
34 extern decltype(::SymGetSearchPathW
) *SymGetSearchPathW
;
35 extern decltype(::SymInitialize
) *SymInitialize
;
36 extern decltype(::SymSetOptions
) *SymSetOptions
;
37 extern decltype(::SymSetSearchPathW
) *SymSetSearchPathW
;
38 extern decltype(::UnDecorateSymbolName
) *UnDecorateSymbolName
;
40 } // namespace __sanitizer
42 #endif // SANITIZER_SYMBOLIZER_WIN_H