| ... | @@ -1181,8 +1181,8 @@ pub const DwarfInfo = struct { | ... | @@ -1181,8 +1181,8 @@ pub const DwarfInfo = struct { |
| 1181 | func_list: ArrayList(Func), | 1181 | func_list: ArrayList(Func), |
| 1182 | | 1182 | |
| 1183 | pub const Section = struct { | 1183 | pub const Section = struct { |
| 1184 | offset: usize, | 1184 | offset: u64, |
| 1185 | size: usize, | 1185 | size: u64, |
| 1186 | }; | 1186 | }; |
| 1187 | | 1187 | |
| 1188 | pub fn allocator(self: DwarfInfo) *mem.Allocator { | 1188 | pub fn allocator(self: DwarfInfo) *mem.Allocator { |
| ... | @@ -1344,8 +1344,8 @@ const FileEntry = struct { | ... | @@ -1344,8 +1344,8 @@ const FileEntry = struct { |
| 1344 | }; | 1344 | }; |
| 1345 | | 1345 | |
| 1346 | pub const LineInfo = struct { | 1346 | pub const LineInfo = struct { |
| 1347 | line: usize, | 1347 | line: u64, |
| 1348 | column: usize, | 1348 | column: u64, |
| 1349 | file_name: []const u8, | 1349 | file_name: []const u8, |
| 1350 | allocator: ?*mem.Allocator, | 1350 | allocator: ?*mem.Allocator, |
| 1351 | | 1351 | |
| ... | @@ -1358,8 +1358,8 @@ pub const LineInfo = struct { | ... | @@ -1358,8 +1358,8 @@ pub const LineInfo = struct { |
| 1358 | const LineNumberProgram = struct { | 1358 | const LineNumberProgram = struct { |
| 1359 | address: usize, | 1359 | address: usize, |
| 1360 | file: usize, | 1360 | file: usize, |
| 1361 | line: isize, | 1361 | line: i64, |
| 1362 | column: usize, | 1362 | column: u64, |
| 1363 | is_stmt: bool, | 1363 | is_stmt: bool, |
| 1364 | basic_block: bool, | 1364 | basic_block: bool, |
| 1365 | end_sequence: bool, | 1365 | end_sequence: bool, |
| ... | @@ -1370,8 +1370,8 @@ const LineNumberProgram = struct { | ... | @@ -1370,8 +1370,8 @@ const LineNumberProgram = struct { |
| 1370 | | 1370 | |
| 1371 | prev_address: usize, | 1371 | prev_address: usize, |
| 1372 | prev_file: usize, | 1372 | prev_file: usize, |
| 1373 | prev_line: isize, | 1373 | prev_line: i64, |
| 1374 | prev_column: usize, | 1374 | prev_column: u64, |
| 1375 | prev_is_stmt: bool, | 1375 | prev_is_stmt: bool, |
| 1376 | prev_basic_block: bool, | 1376 | prev_basic_block: bool, |
| 1377 | prev_end_sequence: bool, | 1377 | prev_end_sequence: bool, |
| ... | @@ -1414,7 +1414,7 @@ const LineNumberProgram = struct { | ... | @@ -1414,7 +1414,7 @@ const LineNumberProgram = struct { |
| 1414 | const file_name = try os.path.join(self.file_entries.allocator, [][]const u8{ dir_name, file_entry.file_name }); | 1414 | const file_name = try os.path.join(self.file_entries.allocator, [][]const u8{ dir_name, file_entry.file_name }); |
| 1415 | errdefer self.file_entries.allocator.free(file_name); | 1415 | errdefer self.file_entries.allocator.free(file_name); |
| 1416 | return LineInfo{ | 1416 | return LineInfo{ |
| 1417 | .line = if (self.prev_line >= 0) @intCast(usize, self.prev_line) else 0, | 1417 | .line = if (self.prev_line >= 0) @intCast(u64, self.prev_line) else 0, |
| 1418 | .column = self.prev_column, | 1418 | .column = self.prev_column, |
| 1419 | .file_name = file_name, | 1419 | .file_name = file_name, |
| 1420 | .allocator = self.file_entries.allocator, | 1420 | .allocator = self.file_entries.allocator, |
| ... | @@ -1789,7 +1789,7 @@ fn getLineNumberInfoMacOs(di: *DebugInfo, symbol: MachoSymbol, target_address: u | ... | @@ -1789,7 +1789,7 @@ fn getLineNumberInfoMacOs(di: *DebugInfo, symbol: MachoSymbol, target_address: u |
| 1789 | prog.basic_block = false; | 1789 | prog.basic_block = false; |
| 1790 | }, | 1790 | }, |
| 1791 | DW.LNS_advance_pc => { | 1791 | DW.LNS_advance_pc => { |
| 1792 | const arg = try leb.readULEB128Mem(u64, &ptr); | 1792 | const arg = try leb.readULEB128Mem(usize, &ptr); |
| 1793 | prog.address += arg * minimum_instruction_length; | 1793 | prog.address += arg * minimum_instruction_length; |
| 1794 | }, | 1794 | }, |
| 1795 | DW.LNS_advance_line => { | 1795 | DW.LNS_advance_line => { |
| ... | @@ -1797,7 +1797,7 @@ fn getLineNumberInfoMacOs(di: *DebugInfo, symbol: MachoSymbol, target_address: u | ... | @@ -1797,7 +1797,7 @@ fn getLineNumberInfoMacOs(di: *DebugInfo, symbol: MachoSymbol, target_address: u |
| 1797 | prog.line += arg; | 1797 | prog.line += arg; |
| 1798 | }, | 1798 | }, |
| 1799 | DW.LNS_set_file => { | 1799 | DW.LNS_set_file => { |
| 1800 | const arg = try leb.readULEB128Mem(u64, &ptr); | 1800 | const arg = try leb.readULEB128Mem(usize, &ptr); |
| 1801 | prog.file = arg; | 1801 | prog.file = arg; |
| 1802 | }, | 1802 | }, |
| 1803 | DW.LNS_set_column => { | 1803 | DW.LNS_set_column => { |
| ... | @@ -1955,7 +1955,7 @@ fn getLineNumberInfoDwarf(di: *DwarfInfo, compile_unit: CompileUnit, target_addr | ... | @@ -1955,7 +1955,7 @@ fn getLineNumberInfoDwarf(di: *DwarfInfo, compile_unit: CompileUnit, target_addr |
| 1955 | prog.basic_block = false; | 1955 | prog.basic_block = false; |
| 1956 | }, | 1956 | }, |
| 1957 | DW.LNS_advance_pc => { | 1957 | DW.LNS_advance_pc => { |
| 1958 | const arg = try leb.readULEB128(u64, di.dwarf_in_stream); | 1958 | const arg = try leb.readULEB128(usize, di.dwarf_in_stream); |
| 1959 | prog.address += arg * minimum_instruction_length; | 1959 | prog.address += arg * minimum_instruction_length; |
| 1960 | }, | 1960 | }, |
| 1961 | DW.LNS_advance_line => { | 1961 | DW.LNS_advance_line => { |
| ... | @@ -1963,7 +1963,7 @@ fn getLineNumberInfoDwarf(di: *DwarfInfo, compile_unit: CompileUnit, target_addr | ... | @@ -1963,7 +1963,7 @@ fn getLineNumberInfoDwarf(di: *DwarfInfo, compile_unit: CompileUnit, target_addr |
| 1963 | prog.line += arg; | 1963 | prog.line += arg; |
| 1964 | }, | 1964 | }, |
| 1965 | DW.LNS_set_file => { | 1965 | DW.LNS_set_file => { |
| 1966 | const arg = try leb.readULEB128(u64, di.dwarf_in_stream); | 1966 | const arg = try leb.readULEB128(usize, di.dwarf_in_stream); |
| 1967 | prog.file = arg; | 1967 | prog.file = arg; |
| 1968 | }, | 1968 | }, |
| 1969 | DW.LNS_set_column => { | 1969 | DW.LNS_set_column => { |