tsan: fix stack printing

strip_path_prefix was not stripped from file names.

llvm-svn: 229106
This commit is contained in:
Dmitry Vyukov 2015-02-13 14:27:43 +00:00
parent b14ae8692d
commit af3b09663b

View File

@ -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);
}
}