Skip to content

Commit d9a39c7

Browse files
committed
[lldb] Use mangled symbol name to look for __asan::AsanDie()
After aed965d we no longer demangle full symbol names while indexing the symbol table which means we have to use the mangled name instead of the demangled name to find the symbol for __asan::AsanDie(). This fixes the following two tests: lldb-api :: functionalities/asan/TestMemoryHistory.py lldb-api :: functionalities/asan/TestReportData.py (cherry picked from commit ef3fade)
1 parent 51ed999 commit d9a39c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ void InstrumentationRuntimeASan::Activate() {
285285
if (!process_sp)
286286
return;
287287

288-
ConstString symbol_name("__asan::AsanDie()");
288+
ConstString symbol_name("_ZN6__asanL7AsanDieEv");
289289
const Symbol *symbol = GetRuntimeModuleSP()->FindFirstSymbolWithNameAndType(
290290
symbol_name, eSymbolTypeCode);
291291

0 commit comments

Comments
 (0)