diff options
Diffstat (limited to 'compiler-rt/lib/tysan/tysan.cpp')
| -rw-r--r-- | compiler-rt/lib/tysan/tysan.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/lib/tysan/tysan.cpp b/compiler-rt/lib/tysan/tysan.cpp index 39d78e7c95e0..9c87b4782671 100644 --- a/compiler-rt/lib/tysan/tysan.cpp +++ b/compiler-rt/lib/tysan/tysan.cpp @@ -197,10 +197,14 @@ static void reportError(void *Addr, int Size, tysan_type_descriptor *TD, Printf("\n"); if (pc) { + uptr top = 0; + uptr bottom = 0; + if (flags().print_stacktrace) + GetThreadStackTopAndBottom(false, &top, &bottom); bool request_fast = StackTrace::WillUseFastUnwind(true); BufferedStackTrace ST; - ST.Unwind(kStackTraceMax, pc, bp, 0, 0, 0, request_fast); + ST.Unwind(kStackTraceMax, pc, bp, 0, top, bottom, request_fast); ST.Print(); } else { Printf("\n"); |
