| ... | ... | @@ -1003,7 +1003,7 @@ fn readMachODebugInfo(allocator: *mem.Allocator, macho_file: File) !ModuleDebugI |
| 1003 | 1003 | // Even though lld emits symbols in ascending order, this debug code |
| 1004 | 1004 | // should work for programs linked in any valid way. |
| 1005 | 1005 | // This sort is so that we can binary search later. |
| 1006 | | std.sort.sort(MachoSymbol, symbols, MachoSymbol.addressLessThan); |
| 1006 | std.sort.sort(MachoSymbol, symbols, {}, MachoSymbol.addressLessThan); |
| 1007 | 1007 | |
| 1008 | 1008 | return ModuleDebugInfo{ |
| 1009 | 1009 | .base_address = undefined, |
| ... | ... | @@ -1058,7 +1058,7 @@ const MachoSymbol = struct { |
| 1058 | 1058 | return self.nlist.n_value; |
| 1059 | 1059 | } |
| 1060 | 1060 | |
| 1061 | | fn addressLessThan(lhs: MachoSymbol, rhs: MachoSymbol) bool { |
| 1061 | fn addressLessThan(context: void, lhs: MachoSymbol, rhs: MachoSymbol) bool { |
| 1062 | 1062 | return lhs.address() < rhs.address(); |
| 1063 | 1063 | } |
| 1064 | 1064 | }; |
| ... | ... | @@ -1300,7 +1300,7 @@ pub const DebugInfo = struct { |
| 1300 | 1300 | fs.cwd().openFile(ctx.name, .{ .intended_io_mode = .blocking }) |
| 1301 | 1301 | else |
| 1302 | 1302 | fs.openSelfExe(.{ .intended_io_mode = .blocking }); |
| 1303 | | |
| 1303 | |
| 1304 | 1304 | const elf_file = copy catch |err| switch (err) { |
| 1305 | 1305 | error.FileNotFound => return error.MissingDebugInfo, |
| 1306 | 1306 | else => return err, |