| ... | ... | @@ -1078,13 +1078,8 @@ pub fn readElfDebugInfo( |
| 1078 | 1078 | parent_mapped_mem: ?[]align(mem.page_size) const u8, |
| 1079 | 1079 | ) !ModuleDebugInfo { |
| 1080 | 1080 | nosuspend { |
| 1081 | | |
| 1082 | | // TODO https://github.com/ziglang/zig/issues/5525 |
| 1083 | 1081 | const elf_file = (if (elf_filename) |filename| blk: { |
| 1084 | | break :blk if (fs.path.isAbsolute(filename)) |
| 1085 | | fs.openFileAbsolute(filename, .{ .intended_io_mode = .blocking }) |
| 1086 | | else |
| 1087 | | fs.cwd().openFile(filename, .{ .intended_io_mode = .blocking }); |
| 1082 | break :blk fs.cwd().openFile(filename, .{ .intended_io_mode = .blocking }); |
| 1088 | 1083 | } else fs.openSelfExe(.{ .intended_io_mode = .blocking })) catch |err| switch (err) { |
| 1089 | 1084 | error.FileNotFound => return error.MissingDebugInfo, |
| 1090 | 1085 | else => return err, |