[llvm-commits] [compiler-rt] r168369 - /compiler-rt/trunk/lib/asan/asan_linux.cc
Kostya Serebryany
kcc at google.com
Tue Nov 20 07:15:45 PST 2012
Author: kcc
Date: Tue Nov 20 09:15:44 2012
New Revision: 168369
URL: http://llvm.org/viewvc/llvm-project?rev=168369&view=rev
Log:
[asan] pop the two internal functions from the stack trace produced by _Unwind_Backtrace (Peter Bergner)
Modified:
compiler-rt/trunk/lib/asan/asan_linux.cc
Modified: compiler-rt/trunk/lib/asan/asan_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_linux.cc?rev=168369&r1=168368&r2=168369&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_linux.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_linux.cc Tue Nov 20 09:15:44 2012
@@ -160,6 +160,8 @@
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())
More information about the llvm-commits
mailing list