[Lldb-commits] [PATCH] D60817: [NativePDB] Add anonymous namespaces support
Aleksandr Urakov via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 17 05:19:50 PDT 2019
aleksandr.urakov created this revision.
aleksandr.urakov added reviewers: zturner, asmith, labath, stella.stamenova.
aleksandr.urakov added a project: LLDB.
Herald added subscribers: lldb-commits, teemperor, aprantl.
This patch adds anonymous namespaces support to the native PDB plugin.
I had to reference from the main function variables of the types that are inside of the anonymous namespace to include them in debug info. Without the references they are not included. I think it's because they are static, then are visible only in the current translation unit, so they are not needed without any references to them.
There is also the problem case with variables of types that are nested in template structs. For now I've left FIXME in the test because this case is not related to the change.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D60817
Files:
lit/SymbolFile/NativePDB/Inputs/ast-types.lldbinit
lit/SymbolFile/NativePDB/ast-types.cpp
lit/SymbolFile/NativePDB/typedefs.cpp
lit/SymbolFile/PDB/ast-restore.test
source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60817.195540.patch
Type: text/x-patch
Size: 6106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190417/e7241d2a/attachment.bin>
More information about the lldb-commits
mailing list