Skip to content

Commit 1694646

Browse files
committed
Revert "[Sanitizers][Darwin] In DlAddrSymbolizer, return only the module file name instead of the comlpete module path during symbolication."
The commit broke asan_symbolize.py script on Darwin which depended on using the complete module path to symolize crash traces offline. This reverts commit f6ea869. rdar://110487521
1 parent 63710fd commit 1694646

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

Diff for: compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ bool DlAddrSymbolizer::SymbolizePC(uptr addr, SymbolizedStack *stack) {
4141
stack->info.function_offset = addr - sym_addr;
4242
}
4343

44-
if (info.dli_fname) {
45-
if (auto *last_occurence = internal_strrchr(info.dli_fname, '/')) {
46-
stack->info.module = internal_strdup(last_occurence + 1);
47-
}
48-
}
49-
5044
const char *demangled = DemangleSwiftAndCXX(info.dli_sname);
5145
if (!demangled) return false;
5246
stack->info.function = internal_strdup(demangled);

Diff for: compiler-rt/test/sanitizer_common/TestCases/Darwin/symbolizer-file-name-dladdr.cpp

-11
This file was deleted.

0 commit comments

Comments
 (0)