[Lldb-commits] [PATCH] D134066: [LLDB][NativePDB] Forcefully complete a record type it has incomplete type debug info.

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 3 16:20:37 PDT 2022


zequanwu updated this revision to Diff 473077.
zequanwu added a comment.

Update to forcefully complete a record type only if it has empty debug info and is required to have complete type.

I basically copied RequireCompleteType <https://github.com/llvm/llvm-project/blob/main/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp#L230-L250> from dwarf plugin. Calling it when the tag type is one of 1. an element type 2. an base class 3. a class member. This is the same way that dwarf plugin is doing.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134066/new/

https://reviews.llvm.org/D134066

Files:
  lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.h
  lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
  lldb/test/Shell/SymbolFile/NativePDB/Inputs/incomplete-tag-type.cpp
  lldb/test/Shell/SymbolFile/NativePDB/incomplete-tag-type.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134066.473077.patch
Type: text/x-patch
Size: 6545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221103/6e4b8335/attachment-0001.bin>


More information about the lldb-commits mailing list