| ... | ... | @@ -811,22 +811,22 @@ pub fn openElfDebugInfo(allocator: *mem.Allocator, elf_file_path: []const u8) !M |
| 811 | 811 | const mapped_mem = try mapWholeFile(elf_file_path); |
| 812 | 812 | |
| 813 | 813 | var seekable_stream = io.SliceSeekableInStream.init(mapped_mem); |
| 814 | | var efile = try elf.Elf.openStream( |
| 814 | var efile = try noasync elf.Elf.openStream( |
| 815 | 815 | allocator, |
| 816 | 816 | @ptrCast(*DW.DwarfSeekableStream, &seekable_stream.seekable_stream), |
| 817 | 817 | @ptrCast(*DW.DwarfInStream, &seekable_stream.stream), |
| 818 | 818 | ); |
| 819 | | defer efile.close(); |
| 819 | defer noasync efile.close(); |
| 820 | 820 | |
| 821 | | const debug_info = (try efile.findSection(".debug_info")) orelse |
| 821 | const debug_info = (try noasync efile.findSection(".debug_info")) orelse |
| 822 | 822 | return error.MissingDebugInfo; |
| 823 | | const debug_abbrev = (try efile.findSection(".debug_abbrev")) orelse |
| 823 | const debug_abbrev = (try noasync efile.findSection(".debug_abbrev")) orelse |
| 824 | 824 | return error.MissingDebugInfo; |
| 825 | | const debug_str = (try efile.findSection(".debug_str")) orelse |
| 825 | const debug_str = (try noasync efile.findSection(".debug_str")) orelse |
| 826 | 826 | return error.MissingDebugInfo; |
| 827 | | const debug_line = (try efile.findSection(".debug_line")) orelse |
| 827 | const debug_line = (try noasync efile.findSection(".debug_line")) orelse |
| 828 | 828 | return error.MissingDebugInfo; |
| 829 | | const opt_debug_ranges = try efile.findSection(".debug_ranges"); |
| 829 | const opt_debug_ranges = try noasync efile.findSection(".debug_ranges"); |
| 830 | 830 | |
| 831 | 831 | var di = DW.DwarfInfo{ |
| 832 | 832 | .endian = efile.endian, |
| ... | ... | @@ -840,7 +840,7 @@ pub fn openElfDebugInfo(allocator: *mem.Allocator, elf_file_path: []const u8) !M |
| 840 | 840 | null, |
| 841 | 841 | }; |
| 842 | 842 | |
| 843 | | try DW.openDwarfDebugInfo(&di, allocator); |
| 843 | try noasync DW.openDwarfDebugInfo(&di, allocator); |
| 844 | 844 | |
| 845 | 845 | return ModuleDebugInfo{ |
| 846 | 846 | .base_address = undefined, |
| ... | ... | @@ -983,8 +983,8 @@ const MachoSymbol = struct { |
| 983 | 983 | }; |
| 984 | 984 | |
| 985 | 985 | fn mapWholeFile(path: []const u8) ![]const u8 { |
| 986 | | const file = try fs.openFileAbsolute(path, .{}); |
| 987 | | defer file.close(); |
| 986 | const file = try noasync fs.openFileAbsolute(path, .{ .always_blocking = true }); |
| 987 | defer noasync file.close(); |
| 988 | 988 | |
| 989 | 989 | const file_len = try math.cast(usize, try file.getEndPos()); |
| 990 | 990 | const mapped_mem = try os.mmap( |
| ... | ... | @@ -1565,14 +1565,14 @@ pub const ModuleDebugInfo = switch (builtin.os) { |
| 1565 | 1565 | // Translate the VA into an address into this object |
| 1566 | 1566 | const relocated_address = address - self.base_address; |
| 1567 | 1567 | |
| 1568 | | if (self.dwarf.findCompileUnit(relocated_address)) |compile_unit| { |
| 1568 | if (noasync self.dwarf.findCompileUnit(relocated_address)) |compile_unit| { |
| 1569 | 1569 | return SymbolInfo{ |
| 1570 | | .symbol_name = self.dwarf.getSymbolName(relocated_address) orelse "???", |
| 1570 | .symbol_name = noasync self.dwarf.getSymbolName(relocated_address) orelse "???", |
| 1571 | 1571 | .compile_unit_name = compile_unit.die.getAttrString(&self.dwarf, DW.AT_name) catch |err| switch (err) { |
| 1572 | 1572 | error.MissingDebugInfo, error.InvalidDebugInfo => "???", |
| 1573 | 1573 | else => return err, |
| 1574 | 1574 | }, |
| 1575 | | .line_info = self.dwarf.getLineNumberInfo(compile_unit.*, relocated_address) catch |err| switch (err) { |
| 1575 | .line_info = noasync self.dwarf.getLineNumberInfo(compile_unit.*, relocated_address) catch |err| switch (err) { |
| 1576 | 1576 | error.MissingDebugInfo, error.InvalidDebugInfo => null, |
| 1577 | 1577 | else => return err, |
| 1578 | 1578 | }, |