| ... | @@ -936,6 +936,7 @@ pub const DwarfInfo = struct { | ... | @@ -936,6 +936,7 @@ pub const DwarfInfo = struct { |
| 936 | const ranges_val = compile_unit.die.getAttr(AT.ranges) orelse continue; | 936 | const ranges_val = compile_unit.die.getAttr(AT.ranges) orelse continue; |
| 937 | const ranges_offset = switch (ranges_val.*) { | 937 | const ranges_offset = switch (ranges_val.*) { |
| 938 | .SecOffset => |off| off, | 938 | .SecOffset => |off| off, |
| | 939 | .Const => |c| try c.asUnsignedLe(), |
| 939 | .RangeListOffset => |idx| off: { | 940 | .RangeListOffset => |idx| off: { |
| 940 | if (compile_unit.is_64) { | 941 | if (compile_unit.is_64) { |
| 941 | const offset_loc = @intCast(usize, compile_unit.rnglists_base + 8 * idx); | 942 | const offset_loc = @intCast(usize, compile_unit.rnglists_base + 8 * idx); |