| ... | ... | @@ -1382,7 +1382,7 @@ pub const DebugInfo = struct { |
| 1382 | 1382 | } = .{ .address = address }; |
| 1383 | 1383 | const CtxTy = @TypeOf(ctx); |
| 1384 | 1384 | |
| 1385 | | if (os.dl_iterate_phdr(&ctx, anyerror, struct { |
| 1385 | if (os.dl_iterate_phdr(&ctx, error{Found}, struct { |
| 1386 | 1386 | fn callback(info: *os.dl_phdr_info, size: usize, context: *CtxTy) !void { |
| 1387 | 1387 | _ = size; |
| 1388 | 1388 | // The base address is too high |
| ... | ... | @@ -1410,7 +1410,6 @@ pub const DebugInfo = struct { |
| 1410 | 1410 | return error.MissingDebugInfo; |
| 1411 | 1411 | } else |err| switch (err) { |
| 1412 | 1412 | error.Found => {}, |
| 1413 | | else => return error.MissingDebugInfo, |
| 1414 | 1413 | } |
| 1415 | 1414 | |
| 1416 | 1415 | if (self.address_map.get(ctx.base_address)) |obj_di| { |