[Lldb-commits] [PATCH] D115308: [LLDB][DWARF] Fix duplicate TypeSP in type list

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Dec 8 14:02:59 PST 2021


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

I found that is actually a problem in TypeList. We need to uniquify Type in
TypeList.

- Use an additional set of `Type*` to check if it exists or not.
- Print number of types in TypeList.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115308

Files:
  lldb/include/lldb/Symbol/TypeList.h
  lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  lldb/source/Symbol/SymbolFile.cpp
  lldb/source/Symbol/TypeList.cpp
  lldb/test/Shell/SymbolFile/DWARF/x86/debug-types-line-tables.s
  lldb/test/Shell/SymbolFile/DWARF/x86/dump-types.cpp
  lldb/test/Shell/SymbolFile/NativePDB/load-pdb.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115308.392932.patch
Type: text/x-patch
Size: 10076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211208/b0124dce/attachment.bin>


More information about the lldb-commits mailing list