[LLDB][NativePDB] Add local variables with no location info.
authorZequan Wu <zequanwu@google.com>
Sat, 10 Sep 2022 00:47:25 +0000 (17:47 -0700)
committerZequan Wu <zequanwu@google.com>
Mon, 12 Sep 2022 19:01:24 +0000 (12:01 -0700)
commitaedad60231fcfd967f041616573caa7ff229e2b2
tree12751432f891f9c598596b743ac67fb5539dba4e
parent3c1b42347b3a0666c93948ade2f420a20e060c1a
[LLDB][NativePDB] Add local variables with no location info.

If we don't add local variables with no location info, when trying to print it,
lldb won't find it in the its parent DeclContext, which makes lldb to spend more
time to search all the way up in DeclContext hierarchy until found same name
variable or failed. Dwarf plugin also add local vars even if they don't have
location info.

Differential Revision: https://reviews.llvm.org/D133626
lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.h
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
lldb/test/Shell/SymbolFile/NativePDB/inline_sites.test