diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index 6330bb3b8d311..b5deeae8b9d82 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -995,14 +995,17 @@ SectionType ObjectFilePECOFF::GetSectionType(llvm::StringRef sect_name, SectionType section_type = llvm::StringSwitch(sect_name) + // PE/COFF image-file section names are limited to 8 characters, + // so the linker truncates the longer source names. Match both. + .Cases({".eh_frame", ".eh_fram"}, eSectionTypeEHFrame) + .Cases({".gosymtab", ".gosymta"}, eSectionTypeGoSymtab) + .Cases({".lldbsummaries", ".lldbsum"}, + lldb::eSectionTypeLLDBTypeSummaries) + .Cases({".lldbformatters", ".lldbfor"}, + lldb::eSectionTypeLLDBFormatters) .Case(".debug", eSectionTypeDebug) .Case(".stabstr", eSectionTypeDataCString) .Case(".reloc", eSectionTypeOther) - // .eh_frame can be truncated to 8 chars. - .Cases({".eh_frame", ".eh_fram"}, eSectionTypeEHFrame) - .Case(".gosymtab", eSectionTypeGoSymtab) - .Case(".lldbsummaries", lldb::eSectionTypeLLDBTypeSummaries) - .Case(".lldbformatters", lldb::eSectionTypeLLDBFormatters) .Case("swiftast", eSectionTypeSwiftModules) .Default(eSectionTypeInvalid); if (section_type != eSectionTypeInvalid) diff --git a/lldb/test/API/functionalities/data-formatter/bytecode-summary/TestBytecodeSummary.py b/lldb/test/API/functionalities/data-formatter/bytecode-summary/TestBytecodeSummary.py index 43a7e1abc3b0b..c32a4517b2b82 100644 --- a/lldb/test/API/functionalities/data-formatter/bytecode-summary/TestBytecodeSummary.py +++ b/lldb/test/API/functionalities/data-formatter/bytecode-summary/TestBytecodeSummary.py @@ -5,7 +5,6 @@ class TestCase(TestBase): - @skipIfWindows def test(self): self.build() if self.TraceOn(): diff --git a/lldb/test/API/functionalities/data-formatter/bytecode-synthetic/TestBytecodeSynthetic.py b/lldb/test/API/functionalities/data-formatter/bytecode-synthetic/TestBytecodeSynthetic.py index 1c0f05f20182e..21228c61e1427 100644 --- a/lldb/test/API/functionalities/data-formatter/bytecode-synthetic/TestBytecodeSynthetic.py +++ b/lldb/test/API/functionalities/data-formatter/bytecode-synthetic/TestBytecodeSynthetic.py @@ -5,7 +5,6 @@ class TestCase(TestBase): - @skipIfWindows def test_synthetic(self): self.build() if self.TraceOn(): @@ -22,7 +21,6 @@ def test_synthetic(self): self.expect("v acc", matching=False, substrs=["password"]) - @skipIfWindows def test_update_reuse(self): self.build()