| ... | @@ -99,6 +99,10 @@ pub fn resolveAddresses( | ... | @@ -99,6 +99,10 @@ pub fn resolveAddresses( |
| 99 | // due to split debug information. For now, we'll just resolve the addreses one by one. | 99 | // due to split debug information. For now, we'll just resolve the addreses one by one. |
| 100 | for (sorted_pc_addrs, output) |pc_addr, *src_loc| { | 100 | for (sorted_pc_addrs, output) |pc_addr, *src_loc| { |
| 101 | const dwarf, const dwarf_pc_addr = mf.getDwarfForAddress(gpa, io, pc_addr) catch |err| switch (err) { | 101 | const dwarf, const dwarf_pc_addr = mf.getDwarfForAddress(gpa, io, pc_addr) catch |err| switch (err) { |
| | 102 | error.MissingDebugInfo => { |
| | 103 | src_loc.* = .invalid; |
| | 104 | continue; |
| | 105 | }, |
| 102 | error.InvalidMachO, error.InvalidDwarf => return error.InvalidDebugInfo, | 106 | error.InvalidMachO, error.InvalidDwarf => return error.InvalidDebugInfo, |
| 103 | else => |e| return e, | 107 | else => |e| return e, |
| 104 | }; | 108 | }; |