[LLDB][NativePDB] Global ctor and dtor should be global decls.
authorZequan Wu <zequanwu@google.com>
Wed, 7 Sep 2022 19:29:31 +0000 (12:29 -0700)
committerZequan Wu <zequanwu@google.com>
Fri, 16 Sep 2022 05:35:58 +0000 (22:35 -0700)
commit8704281c567705822a1c23b9ec40f5bdc5d58352
tree88b8352c486b0e56ce02aeba047c8169d5bfae8b
parent9cd28d3f11c75eb251b50eeebd2e498ea5ce854b
[LLDB][NativePDB] Global ctor and dtor should be global decls.

This fixes a crash that mistaken global ctor/dtor as funciton methods.

Differential Revision: https://reviews.llvm.org/D133446
lldb/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
lldb/test/Shell/SymbolFile/NativePDB/global-ctor-dtor.cpp [new file with mode: 0644]