[Lldb-commits] [PATCH] D134849: [LLDB][NativePDB] Fix struct layout when it has anonymous unions.

Zequan Wu via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 5 14:59:22 PDT 2022


zequanwu updated this revision to Diff 465565.
zequanwu marked an inline comment as done.
zequanwu added a comment.

Updated to handle the nested anonymous union and struct situation.
It's done by:

1. Create the record layout with `Field` which could be a field member or an anonymous struct or an anonymous union. If it's struct/union, it has `fields` to refer to its members.
2. Create the AST from the record layout above.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134849

Files:
  lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
  lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
  lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.h
  lldb/test/Shell/SymbolFile/NativePDB/Inputs/class_layout.lldbinit
  lldb/test/Shell/SymbolFile/NativePDB/class_layout.cpp
  lldb/test/Shell/SymbolFile/NativePDB/global-classes.cpp
  lldb/test/Shell/SymbolFile/NativePDB/packed_class_layout.cpp
  lldb/test/Shell/SymbolFile/NativePDB/tag-types.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134849.465565.patch
Type: text/x-patch
Size: 29322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221005/d35b28cc/attachment-0001.bin>


More information about the lldb-commits mailing list