[Lldb-commits] [lldb] ef3fade - [lldb] Use mangled symbol name to look for __asan::AsanDie()
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Sat Feb 5 09:50:38 PST 2022
Author: Jonas Devlieghere
Date: 2022-02-05T09:50:31-08:00
New Revision: ef3fade14b32c20e0a35b8fca30e7d2f20e0c983
URL: https://github.com/llvm/llvm-project/commit/ef3fade14b32c20e0a35b8fca30e7d2f20e0c983
DIFF: https://github.com/llvm/llvm-project/commit/ef3fade14b32c20e0a35b8fca30e7d2f20e0c983.diff
LOG: [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
Added:
Modified:
lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp b/lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp
index 8d8b5c68e41b3..33b2b5dd51559 100644
--- a/lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp
+++ b/lldb/source/Plugins/InstrumentationRuntime/ASan/InstrumentationRuntimeASan.cpp
@@ -281,7 +281,7 @@ void InstrumentationRuntimeASan::Activate() {
if (!process_sp)
return;
- ConstString symbol_name("__asan::AsanDie()");
+ ConstString symbol_name("_ZN6__asanL7AsanDieEv");
const Symbol *symbol = GetRuntimeModuleSP()->FindFirstSymbolWithNameAndType(
symbol_name, eSymbolTypeCode);
More information about the lldb-commits
mailing list