From cca3cc0fc367d221b41135b13cdbca810639b0cd Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 7 Nov 2013 06:53:41 +0000 Subject: [Sanitizer] Presumable fix stack trace unwinding on Windows git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194195 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_win.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sanitizer_common/sanitizer_win.cc b/lib/sanitizer_common/sanitizer_win.cc index 8c4c9b62..d8a57d53 100644 --- a/lib/sanitizer_common/sanitizer_win.cc +++ b/lib/sanitizer_common/sanitizer_win.cc @@ -382,7 +382,7 @@ void StackTrace::SlowUnwindStack(uptr pc, uptr max_depth) { // FIXME: CaptureStackBackTrace might be too slow for us. // FIXME: Compare with StackWalk64. // FIXME: Look at LLVMUnhandledExceptionFilter in Signals.inc - uptr cs_ret = CaptureStackBackTrace(1, max_depth, tmp, 0); + uptr cs_ret = CaptureStackBackTrace(2, max_depth, tmp, 0); uptr offset = 0; // Skip the RTL frames by searching for the PC in the stacktrace. // FIXME: this doesn't work well for the malloc/free stacks yet. -- cgit v1.2.3