summaryrefslogtreecommitdiff
path: root/lib/asan/asan_internal.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-10-02 12:11:17 +0000
committerAlexey Samsonov <samsonov@google.com>2012-10-02 12:11:17 +0000
commit1ca535700966cf5019dcc6684a62a734a7b96974 (patch)
tree3eb6195853f0fc44622ce43ba1f909edcfb9390c /lib/asan/asan_internal.h
parentd0a51c02157e8293ea365ad0d429ef8e73d115de (diff)
downloadcompiler-rt-1ca535700966cf5019dcc6684a62a734a7b96974.tar.gz
compiler-rt-1ca535700966cf5019dcc6684a62a734a7b96974.tar.bz2
compiler-rt-1ca535700966cf5019dcc6684a62a734a7b96974.tar.xz
[Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_internal.h')
-rw-r--r--lib/asan/asan_internal.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h
index 178a3b73..652ac21c 100644
--- a/lib/asan/asan_internal.h
+++ b/lib/asan/asan_internal.h
@@ -149,10 +149,6 @@ extern int asan_inited;
extern bool asan_init_is_running;
extern void (*death_callback)(void);
-#ifdef _WIN32
-bool WinSymbolize(const void *addr, char *out_buffer, int buffer_size);
-#endif // _WIN32
-
// These magic values are written to shadow for better error reporting.
const int kAsanHeapLeftRedzoneMagic = 0xfa;
const int kAsanHeapRightRedzoneMagic = 0xfb;