[Lldb-commits] [PATCH] D156774: [WIP][lldb] Parse enums while parsing a type

Vlad Serebrennikov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 31 23:24:50 PDT 2023


Endill created this revision.
Endill added a reviewer: JDevlieghere.
Endill added a project: LLDB.
Herald added a reviewer: shafik.
Herald added a project: All.
Endill requested review of this revision.
Herald added a subscriber: lldb-commits.

Fixes #64291 <https://github.com/llvm/llvm-project/issues/64291>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156774

Files:
  lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp


Index: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+++ lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
@@ -3037,6 +3037,17 @@
                        module_sp, base_classes, layout_info);
       break;
 
+    case DW_TAG_enumeration_type:
+    {
+      SymbolContextScope *scope;
+      scope = parent_die.GetDWARF()->GetObjectFile()->GetModule().get();
+      assert(scope);
+      SymbolContext sc(scope);
+      ParsedDWARFTypeAttributes attrs{die};
+      ParseEnum(sc, die, attrs);
+    }
+    break;
+
     default:
       break;
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156774.545923.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230801/b7d019ff/attachment.bin>


More information about the lldb-commits mailing list