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 {
77
77
guard shdr. sh_type == SHT_SYMTAB || shdr. sh_type == SHT_DYNSYM else { continue }
78
78
79
79
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
+ }
81
83
82
84
guard shdr. sh_entsize == MemoryLayout< Elf64_Sym> . size else {
83
85
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 {
121
121
}
122
122
123
123
// 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 ] {
125
125
guard let data = ProcFS . loadFile ( for: pid, " auxv " ) else {
126
126
throw LinkMapError . failedLoadingAuxVec ( for: pid)
127
127
}
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
You can’t perform that action at this time.
0 commit comments