File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
tools/swift-inspect/Sources/SwiftInspectLinux Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ class ElfFile {
7777 guard shdr. sh_type == SHT_SYMTAB || shdr. sh_type == SHT_DYNSYM else { continue }
7878
7979 let sectionData : Data = try self . readSection ( shdr)
80- let symTable : [ Elf64_Sym ] = sectionData. withUnsafeBytes { Array ( $0. bindMemory ( to: Elf64_Sym . self) ) }
80+ let symTable : [ Elf64_Sym ] = sectionData. withUnsafeBytes {
81+ Array ( $0. bindMemory ( to: Elf64_Sym . self) )
82+ }
8183
8284 guard shdr. sh_entsize == MemoryLayout< Elf64_Sym> . size else {
8385 throw ELFError . malformedFile ( self . filePath, " invalid Elf64_Shdr.sh_entsize " )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class LinkMap {
121121 }
122122
123123 // loads the auxiliary vector for a 64-bit process
124- static func loadAuxVec( for pid: pid_t ) throws -> [ Int32 : UInt64 ] {
124+ static func loadAuxVec( for pid: pid_t ) throws -> [ Int32 : UInt64 ] {
125125 guard let data = ProcFS . loadFile ( for: pid, " auxv " ) else {
126126 throw LinkMapError . failedLoadingAuxVec ( for: pid)
127127 }
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 22//
33// This source file is part of the Swift.org open source project
44//
5- // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
You can’t perform that action at this time.
0 commit comments