[LLDB][NativePDB] Check string table in PDB files.
authorZequan Wu <zequanwu@google.com>
Wed, 1 Mar 2023 21:28:35 +0000 (16:28 -0500)
committerZequan Wu <zequanwu@google.com>
Mon, 6 Mar 2023 15:25:38 +0000 (10:25 -0500)
commit960126e04a6faad1b71e110a4262c5733e50fab7
tree6326f284f81db035c1bca606aa6e444b38d03ed9
parent28d04c564debff75c6d1f262a621aa4246e761ae
[LLDB][NativePDB] Check string table in PDB files.

Usually PDB files have a string table (aka: Named Stream "/names" ). PDB for
some windows system libraries might not have that. This adds the check for it to
avoid crash in the absence of string table.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D145115
lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.cpp
lldb/source/Plugins/SymbolFile/NativePDB/PdbUtil.cpp
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp