diff options
author | Davide Italiano <davide@freebsd.org> | 2018-11-08 22:47:40 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-11-08 22:47:40 +0000 |
commit | ca591dea1085a173386771fd07a96e5a23d6d2b6 (patch) | |
tree | e3fef8fcbf068943d32ef7a370e96943782779d7 /lldb/source/Plugins/ObjectFile | |
parent | 0585921b7f7987a7cec7551bf4b2a85a0415005e (diff) | |
download | bcm5719-llvm-ca591dea1085a173386771fd07a96e5a23d6d2b6.tar.gz bcm5719-llvm-ca591dea1085a173386771fd07a96e5a23d6d2b6.zip |
Revert "Fix bug in PE/COFF plugin and ValueObjectVariable."
It breaks some tests on MacOS.
llvm-svn: 346444
Diffstat (limited to 'lldb/source/Plugins/ObjectFile')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index 78d03e27d8f..40637574e4b 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -710,10 +710,7 @@ void ObjectFilePECOFF::CreateSections(SectionList &unified_section_list) { llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA && ((const_sect_name == g_data_sect_name) || (const_sect_name == g_DATA_sect_name))) { - if (m_sect_headers[idx].size == 0 && m_sect_headers[idx].offset == 0) - section_type = eSectionTypeZeroFill; - else - section_type = eSectionTypeData; + section_type = eSectionTypeData; } else if (m_sect_headers[idx].flags & llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA && ((const_sect_name == g_bss_sect_name) || @@ -1056,7 +1053,6 @@ ObjectFile::Type ObjectFilePECOFF::CalculateType() { } ObjectFile::Strata ObjectFilePECOFF::CalculateStrata() { return eStrataUser; } - //------------------------------------------------------------------ // PluginInterface protocol //------------------------------------------------------------------ |