| ... | ... | @@ -1158,7 +1158,7 @@ test "basics" { |
| 1158 | 1158 | |
| 1159 | 1159 | // TODO: Test fbreg (once implemented): mock a DIE and point compile_unit.frame_base at it |
| 1160 | 1160 | |
| 1161 | | mem.writeInt(usize, reg_bytes[0..@sizeOf(usize)], 0xee, native_endian); |
| 1161 | mem.writeInt(std.debug.cpu_context.Native.Gpr, reg_bytes[0..@sizeOf(std.debug.cpu_context.Native.Gpr)], 0xee, native_endian); |
| 1162 | 1162 | (try regNative(&cpu_context, fp_reg_num)).* = 1; |
| 1163 | 1163 | (try regNative(&cpu_context, ip_reg_num)).* = 2; |
| 1164 | 1164 | |
| ... | ... | @@ -1566,7 +1566,7 @@ test "basics" { |
| 1566 | 1566 | context = .{ .cpu_context = &cpu_context }; |
| 1567 | 1567 | |
| 1568 | 1568 | const reg_bytes = try cpu_context.dwarfRegisterBytes(0); |
| 1569 | | mem.writeInt(usize, reg_bytes[0..@sizeOf(usize)], 0xee, native_endian); |
| 1569 | mem.writeInt(std.debug.cpu_context.Native.Gpr, reg_bytes[0..@sizeOf(std.debug.cpu_context.Native.Gpr)], 0xee, native_endian); |
| 1570 | 1570 | |
| 1571 | 1571 | var sub_program: std.Io.Writer.Allocating = .init(allocator); |
| 1572 | 1572 | defer sub_program.deinit(); |