mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-02 02:38:04 +00:00
tsan: fix stack printing
strip_path_prefix was not stripped from file names. llvm-svn: 229106
This commit is contained in:
parent
b14ae8692d
commit
af3b09663b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user