Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,14 +996,17 @@ SectionType ObjectFilePECOFF::GetSectionType(llvm::StringRef sect_name,

SectionType section_type =
llvm::StringSwitch<SectionType>(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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class TestCase(TestBase):
@skipUnlessDarwin
def test(self):
self.build()
if self.TraceOn():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class TestCase(TestBase):
@skipUnlessDarwin
def test_synthetic(self):
self.build()
if self.TraceOn():
Expand All @@ -22,7 +21,6 @@ def test_synthetic(self):

self.expect("v acc", matching=False, substrs=["password"])

@skipUnlessDarwin
def test_update_reuse(self):
self.build()

Expand Down