Index: lldb/lit/SymbolFile/NativePDB/ast-reconstruction.cpp =================================================================== --- lldb/lit/SymbolFile/NativePDB/ast-reconstruction.cpp +++ lldb/lit/SymbolFile/NativePDB/ast-reconstruction.cpp @@ -89,16 +89,16 @@ // CHECK: (TrivialC) TC = {} // CHECK: (TrivialS) TS = {} // CHECK: (TrivialU) TU = {} -// CHECK: (TrivialE) TE = -// CHECK: (A::B::C) ABCInt = (ABCMember = ) -// CHECK: (A::B::C) ABCFloat = (ABCMember = ) -// CHECK: (A::B::C) ABCVoid = (ABCSpecializationMember = ) +// CHECK: (TrivialE) TE = TE_A +// CHECK: (A::B::C) ABCInt = (ABCMember = 0) +// CHECK: (A::B::C) ABCFloat = (ABCMember = 0) +// CHECK: (A::B::C) ABCVoid = (ABCSpecializationMember = 0x0000000000000000) // CHECK: (A::C<0>) AC0 = {} // CHECK: (A::C<-1>) ACNeg1 = {} -// CHECK: (A::C<0>::D) AC0D = (ACDMember = , CPtr = ) -// CHECK: (A::C<-1>::D) ACNeg1D = (ACDMember = , CPtr = ) +// CHECK: (A::C<0>::D) AC0D = (ACDMember = 0, CPtr = 0x0000000000000000) +// CHECK: (A::C<-1>::D) ACNeg1D = (ACDMember = 0, CPtr = 0x0000000000000000) // CHECK: (A::D) AD = {} -// CHECK: (A::D::E) ADE = (ADDMember = ) +// CHECK: (A::D::E) ADE = (ADDMember = 0) // CHECK: Dumping clang ast for 1 modules. // CHECK: TranslationUnitDecl {{.*}} // CHECK: |-CXXRecordDecl {{.*}} class TrivialC definition Index: lldb/source/Core/ValueObjectVariable.cpp =================================================================== --- lldb/source/Core/ValueObjectVariable.cpp +++ lldb/source/Core/ValueObjectVariable.cpp @@ -67,7 +67,7 @@ CompilerType ValueObjectVariable::GetCompilerTypeImpl() { Type *var_type = m_variable_sp->GetType(); if (var_type) - return var_type->GetForwardCompilerType(); + return var_type->GetFullCompilerType(); return CompilerType(); } Index: lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h =================================================================== --- lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h +++ lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h @@ -125,6 +125,10 @@ ObjectFile::Strata CalculateStrata() override; + size_t ReadSectionData(lldb_private::Section *section, + lldb::offset_t section_offset, void *dst, + size_t dst_len) override; + //------------------------------------------------------------------ // PluginInterface protocol //------------------------------------------------------------------ Index: lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp =================================================================== --- lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -1053,6 +1053,32 @@ } ObjectFile::Strata ObjectFilePECOFF::CalculateStrata() { return eStrataUser; } + +static bool IsCompressedBss(const Section §ion) { + if (section.GetName() != ConstString(".data")) + return false; + if (section.GetFileSize() != 0) + return false; + if (section.GetFileOffset() != 0) + return false; + return true; +} + +size_t ObjectFilePECOFF::ReadSectionData(Section *section, + lldb::offset_t section_offset, + void *dst, size_t dst_len) { + if (!IsCompressedBss(*section)) + return ObjectFile::ReadSectionData(section, section_offset, dst, dst_len); + + if (section_offset >= section->GetByteSize()) + return 0; + + size_t bytes_avail = section->GetByteSize() - section_offset; + size_t read_size = std::min(dst_len, bytes_avail); + ::memset(dst, 0, read_size); + return read_size; +} + //------------------------------------------------------------------ // PluginInterface protocol //------------------------------------------------------------------