asan_stack.cc revision 276851
1275970Scy//===-- asan_stack.cc -----------------------------------------------------===//
2275970Scy//
3275970Scy//                     The LLVM Compiler Infrastructure
4275970Scy//
5275970Scy// This file is distributed under the University of Illinois Open Source
6275970Scy// License. See LICENSE.TXT for details.
7275970Scy//
8275970Scy//===----------------------------------------------------------------------===//
9330567Sgordon//
10275970Scy// This file is a part of AddressSanitizer, an address sanity checker.
11275970Scy//
12275970Scy// Code for ASan stack trace.
13275970Scy//===----------------------------------------------------------------------===//
14275970Scy#include "asan_internal.h"
15275970Scy#include "asan_stack.h"
16275970Scy
17275970Scy// ------------------ Interface -------------- {{{1
18275970Scy
19275970Scyextern "C" {
20275970ScySANITIZER_INTERFACE_ATTRIBUTE
21275970Scyvoid __sanitizer_print_stack_trace() {
22275970Scy  using namespace __asan;
23275970Scy  PRINT_CURRENT_STACK();
24275970Scy}
25275970Scy}  // extern "C"
26275970Scy