annotate libsanitizer/sanitizer_common/sanitizer_dbghelp.h @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- sanitizer_dbghelp.h ------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
kono
parents:
diff changeset
3 // This file is distributed under the University of Illinois Open Source
kono
parents:
diff changeset
4 // License. See LICENSE.TXT for details.
kono
parents:
diff changeset
5 //
kono
parents:
diff changeset
6 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
7 //
kono
parents:
diff changeset
8 // Wrappers for lazy loaded dbghelp.dll. Provides function pointers and a
kono
parents:
diff changeset
9 // callback to initialize them.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 #ifndef SANITIZER_SYMBOLIZER_WIN_H
kono
parents:
diff changeset
14 #define SANITIZER_SYMBOLIZER_WIN_H
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 #if !SANITIZER_WINDOWS
kono
parents:
diff changeset
17 #error "sanitizer_dbghelp.h is a Windows-only header"
kono
parents:
diff changeset
18 #endif
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #define WIN32_LEAN_AND_MEAN
kono
parents:
diff changeset
21 #include <windows.h>
kono
parents:
diff changeset
22 #include <dbghelp.h>
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 namespace __sanitizer {
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 extern decltype(::StackWalk64) *StackWalk64;
kono
parents:
diff changeset
27 extern decltype(::SymCleanup) *SymCleanup;
kono
parents:
diff changeset
28 extern decltype(::SymFromAddr) *SymFromAddr;
kono
parents:
diff changeset
29 extern decltype(::SymFunctionTableAccess64) *SymFunctionTableAccess64;
kono
parents:
diff changeset
30 extern decltype(::SymGetLineFromAddr64) *SymGetLineFromAddr64;
kono
parents:
diff changeset
31 extern decltype(::SymGetModuleBase64) *SymGetModuleBase64;
kono
parents:
diff changeset
32 extern decltype(::SymGetSearchPathW) *SymGetSearchPathW;
kono
parents:
diff changeset
33 extern decltype(::SymInitialize) *SymInitialize;
kono
parents:
diff changeset
34 extern decltype(::SymSetOptions) *SymSetOptions;
kono
parents:
diff changeset
35 extern decltype(::SymSetSearchPathW) *SymSetSearchPathW;
kono
parents:
diff changeset
36 extern decltype(::UnDecorateSymbolName) *UnDecorateSymbolName;
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 } // namespace __sanitizer
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 #endif // SANITIZER_SYMBOLIZER_WIN_H