Skip to content

Commit

Permalink
macho: handle DWARF v1 all the way to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Oct 21, 2024
1 parent 5c874c9 commit 54226b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MachO/Dwarf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub const InfoReader = struct {
address_size: u8,
unit_type: u8,
} = switch (version) {
4 => .{
1...4 => .{
.debug_abbrev_offset = try p.readOffset(dw_fmt),
.address_size = try p.readByte(),
.unit_type = 0,
Expand All @@ -60,7 +60,7 @@ pub const InfoReader = struct {
.debug_abbrev_offset = try p.readOffset(dw_fmt),
},
else => {
err_ctx.macho_file.base.fatal("{}: unhandled DWARF version: expected 4 or 5, got {d}", .{
err_ctx.macho_file.base.fatal("{}: unhandled DWARF version: {d}", .{
err_ctx.object.fmtPath(),
version,
});
Expand Down

0 comments on commit 54226b5

Please sign in to comment.