[Lldb-commits] [lldb] [lldb][NativePDB] Parse global variables. (PR #114303)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 31 13:08:19 PDT 2024
================
@@ -888,7 +888,8 @@ VariableSP SymbolFileNativePDB::CreateGlobalVariable(PdbGlobalSymId var_id) {
CompUnitSP comp_unit;
std::optional<uint16_t> modi = m_index->GetModuleIndexForVa(addr);
- if (!modi) {
+ // Some globals has modi points to the linker module, ignore them.
+ if (!modi || modi >= GetNumCompileUnits()) {
return nullptr;
}
----------------
JDevlieghere wrote:
Nit: no braces.
https://github.com/llvm/llvm-project/pull/114303
More information about the lldb-commits
mailing list