[Lldb-commits] [PATCH] D68961: Add support for DW_AT_export_symbols for anonymous structs

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 14 16:40:18 PDT 2019


shafik created this revision.
shafik added reviewers: aprantl, teemperor.

We add support for `DW_AT_export_symbols` to detect anonymous struct on top of the heuristics implemented in D66175 <https://reviews.llvm.org/D66175>

This should allow us to differentiate anonymous structs and unnamed structs.

We also fix `TestTypeList.py` which was incorrectly detecting an unnamed struct as an anonymous struct.


https://reviews.llvm.org/D68961

Files:
  include/lldb/Symbol/ClangASTContext.h
  packages/Python/lldbsuite/test/python_api/type/TestTypeList.py
  packages/Python/lldbsuite/test/python_api/type/main.cpp
  source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
  source/Symbol/ClangASTContext.cpp
  test/Shell/SymbolFile/DWARF/clang-ast-from-dwarf-unamed-and-anon-structs.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68961.224933.patch
Type: text/x-patch
Size: 6021 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191014/3cb66b50/attachment.bin>


More information about the lldb-commits mailing list