Skip to content

Commit ef3fade

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
1 parent f2f4080 commit ef3fade

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
@@ -281,7 +281,7 @@ void InstrumentationRuntimeASan::Activate() {
281281
if (!process_sp)
282282
return;
283283

284-
ConstString symbol_name("__asan::AsanDie()");
284+
ConstString symbol_name("_ZN6__asanL7AsanDieEv");
285285
const Symbol *symbol = GetRuntimeModuleSP()->FindFirstSymbolWithNameAndType(
286286
symbol_name, eSymbolTypeCode);
287287

0 commit comments

Comments
 (0)