1 //===-- asan_stack.cc -----------------------------------------------------===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is a part of AddressSanitizer, an address sanity checker.
10 // Code for ASan stack trace.
11 //===----------------------------------------------------------------------===//
12 #include "asan_flags.h"
13 #include "asan_stack.h"
14 #include "sanitizer/asan_interface.h"
18 void PrintStack(StackTrace
*stack
) {
19 stack
->PrintStack(stack
->trace
, stack
->size
, flags()->symbolize
,
20 flags()->strip_path_prefix
, __asan_symbolize
);
25 // ------------------ Interface -------------- {{{1
27 // Provide default implementation of __asan_symbolize that does nothing
28 // and may be overriden by user if he wants to use his own symbolization.
29 // ASan on Windows has its own implementation of this.
31 SANITIZER_WEAK_ATTRIBUTE SANITIZER_INTERFACE_ATTRIBUTE NOINLINE
32 bool __asan_symbolize(const void *pc
, char *out_buffer
, int out_size
) {