[compiler-rt] r229106 - tsan: fix stack printing

Dmitry Vyukov dvyukov at google.com
Fri Feb 13 06:27:43 PST 2015


Author: dvyukov
Date: Fri Feb 13 08:27:43 2015
New Revision: 229106

URL: http://llvm.org/viewvc/llvm-project?rev=229106&view=rev
Log:
tsan: fix stack printing

strip_path_prefix was not stripped from file names.


Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc?rev=229106&r1=229105&r2=229106&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_report.cc Fri Feb 13 08:27:43 2015
@@ -356,8 +356,9 @@ void PrintStack(const ReportStack *ent)
   SymbolizedStack *frame = ent->frames;
   for (int i = 0; frame; frame = frame->next, i++) {
     const AddressInfo &info = frame->info;
-    Printf("  %s()\n      %s:%d +0x%zx\n", info.function, info.file, info.line,
-           (void *)info.module_offset);
+    Printf("  %s()\n      %s:%d +0x%zx\n", info.function,
+        StripPathPrefix(info.file, common_flags()->strip_path_prefix),
+        info.line, (void *)info.module_offset);
   }
 }
 





More information about the llvm-commits mailing list