From: Kostya Serebryany Date: Tue, 20 Nov 2012 15:15:44 +0000 (+0000) Subject: [asan] pop the two internal functions from the stack trace produced by _Unwind_Backtr... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6db8ad43df013f10234ddcafc5b3fd46967a5d64;p=platform%2Fupstream%2Fllvm.git [asan] pop the two internal functions from the stack trace produced by _Unwind_Backtrace (Peter Bergner) llvm-svn: 168369 --- diff --git a/compiler-rt/lib/asan/asan_linux.cc b/compiler-rt/lib/asan/asan_linux.cc index 740bf5e..2e6934e 100644 --- a/compiler-rt/lib/asan/asan_linux.cc +++ b/compiler-rt/lib/asan/asan_linux.cc @@ -160,6 +160,8 @@ void GetStackTrace(StackTrace *stack, uptr max_s, uptr pc, uptr bp) { stack->max_size = max_s; #if defined(__arm__) || defined(__powerpc__) || defined(__powerpc64__) _Unwind_Backtrace(Unwind_Trace, stack); + // Pop off the two ASAN functions from the backtrace. + stack->PopStackFrames(2); #else if (!asan_inited) return; if (AsanThread *t = asanThreadRegistry().GetCurrent())