[Lldb-commits] [lldb] [lldb] DWARFDIE: Follow DW_AT_specification when computing CompilerCo… (PR #77157)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 8 14:20:57 PST 2024


================
@@ -404,7 +409,7 @@ std::vector<lldb_private::CompilerContext> DWARFDIE::GetDeclContext() const {
     push_ctx(CompilerContextKind::Enum, GetName());
     break;
   case DW_TAG_subprogram:
-    push_ctx(CompilerContextKind::Function, GetPubname());
+    push_ctx(CompilerContextKind::Function, GetName());
----------------
adrian-prantl wrote:

I noticed that Pubname returns the linkage name, which is not useful here, and apparently changing this had no effect on the testsuite.

https://github.com/llvm/llvm-project/pull/77157


More information about the lldb-commits mailing list