[Lldb-commits] [lldb] [lldb] Fix lookup of types in anonymous namespaces with -gsimple-template-names (PR #123054)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed Jan 15 08:52:36 PST 2025
================
@@ -401,12 +399,28 @@ static CompilerContext GetContextEntry(DWARFDIE die) {
return ctx(CompilerContextKind::Typedef);
case DW_TAG_base_type:
return ctx(CompilerContextKind::Builtin);
+ case DW_TAG_class_type:
+ case DW_TAG_structure_type:
+ case DW_TAG_union_type: {
+ CompilerContextKind kind = die.Tag() == DW_TAG_union_type
+ ? CompilerContextKind::Union
+ : CompilerContextKind::ClassOrStruct;
+ llvm::StringRef name = die.GetName();
+ if (!complete_template_names || name.contains('<'))
----------------
Michael137 wrote:
makes sense, thanks!
https://github.com/llvm/llvm-project/pull/123054
More information about the lldb-commits
mailing list