From: Hannes Domani Date: Mon, 18 Apr 2022 14:25:57 +0000 (+0200) Subject: PDB: optimized-out variables X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ba83a63d0d5343908c13f3f7b374bf56bf1030;p=thirdparty%2Fbinutils-gdb.git PDB: optimized-out variables --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 7d9c7b182eb..67de954173f 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -3888,6 +3888,10 @@ pdb_read_data_symbol (PSYMBOL_INFO si, pdb_line_info *pli, const char *name) SYMBOL_LOCATION_BATON (sym) = baton; sym->set_aclass_index (pdb_tls_index); } + else if (si->Flags & 0x80000) // SYMFLAG_NULL + { + sym->set_aclass_index (LOC_OPTIMIZED_OUT); + } else { SET_SYMBOL_VALUE_ADDRESS (sym, si->Address);