https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/152201
None >From 90eaf547090690c6250fa36937c0f07b170eb8bb Mon Sep 17 00:00:00 2001 From: Dave Lee <davelee....@gmail.com> Date: Tue, 5 Aug 2025 13:34:50 -0700 Subject: [PATCH] [lldb] Preserve original symbol of Mangled function names --- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp index 4c6c3054ba179..a429ea848b7f7 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp @@ -2509,7 +2509,9 @@ Function *DWARFASTParserClang::ParseFunctionFromDWARF( // If the mangled name is not present in the DWARF, generate the // demangled name using the decl context. We skip if the function is // "main" as its name is never mangled. - func_name.SetValue(ConstructDemangledNameFromDWARF(die)); + func_name.SetDemangledName(ConstructDemangledNameFromDWARF(die)); + // Ensure symbol is preserved (as the mangled name). + func_name.SetMangledName(ConstString(name)); } else func_name.SetValue(ConstString(name)); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits