diff --git a/Tests/MachOKitTests/MachOFilePrintTests.swift b/Tests/MachOKitTests/MachOFilePrintTests.swift index 5c43f60..ca02d6b 100644 --- a/Tests/MachOKitTests/MachOFilePrintTests.swift +++ b/Tests/MachOKitTests/MachOFilePrintTests.swift @@ -170,6 +170,10 @@ final class MachOFilePrintTests: XCTestCase { print("Stab:", stab) } } + if let sectionNumber = symbol.nlist.sectionNumber { + let section = machO.sections[sectionNumber - 1] + print("Section:", "\(section.segmentName).\(section.sectionName)") + } if let description = symbol.nlist.symbolDescription { print("SymbolDescription:", description.bits) if let referenceFlag = description.referenceFlag { diff --git a/Tests/MachOKitTests/MachOPrintTests.swift b/Tests/MachOKitTests/MachOPrintTests.swift index 2cc71eb..be06e8f 100644 --- a/Tests/MachOKitTests/MachOPrintTests.swift +++ b/Tests/MachOKitTests/MachOPrintTests.swift @@ -103,6 +103,10 @@ final class MachOPrintTests: XCTestCase { print("Stab:", stab) } } + if let sectionNumber = symbol.nlist.sectionNumber { + let section = machO.sections[sectionNumber - 1] + print("Section:", "\(section.segmentName).\(section.sectionName)") + } if let description = symbol.nlist.symbolDescription { print("SymbolDescription:", description.bits) if let referenceFlag = description.referenceFlag {