1 //===-- asan_stack.cc -----------------------------------------------------===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file is a part of AddressSanitizer, an address sanity checker. 11 // 12 // Code for ASan stack trace. 13 //===----------------------------------------------------------------------===// 14 #include "asan_internal.h" 15 #include "asan_stack.h" 16 17 // ------------------ Interface -------------- {{{1 18 19 extern "C" { 20 SANITIZER_INTERFACE_ATTRIBUTE __sanitizer_print_stack_trace()21void __sanitizer_print_stack_trace() { 22 using namespace __asan; 23 PRINT_CURRENT_STACK(); 24 } 25 } // extern "C" 26