| ... | @@ -930,7 +930,7 @@ pub usingnamespace switch (builtin.arch) { | ... | @@ -930,7 +930,7 @@ pub usingnamespace switch (builtin.arch) { |
| 930 | ExtendedRegisters: [512]BYTE, | 930 | ExtendedRegisters: [512]BYTE, |
| 931 | | 931 | |
| 932 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { | 932 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { |
| 933 | return .{.bp = @intCast(usize, ctx.Ebp), .ip = @intCast(usize, ctx.Eip)}; | 933 | return .{.bp = ctx.Ebp, .ip = ctx.Eip}; |
| 934 | } | 934 | } |
| 935 | }; | 935 | }; |
| 936 | | 936 | |
| ... | @@ -1033,7 +1033,7 @@ pub usingnamespace switch (builtin.arch) { | ... | @@ -1033,7 +1033,7 @@ pub usingnamespace switch (builtin.arch) { |
| 1033 | LastExceptionFromRip: DWORD64, | 1033 | LastExceptionFromRip: DWORD64, |
| 1034 | | 1034 | |
| 1035 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { | 1035 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { |
| 1036 | return .{.bp = @intCast(usize, ctx.Rbp), .ip = @intCast(usize, ctx.Rip)}; | 1036 | return .{.bp = ctx.Rbp, .ip = ctx.Rip}; |
| 1037 | } | 1037 | } |
| 1038 | }; | 1038 | }; |
| 1039 | | 1039 | |
| ... | @@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) { | ... | @@ -1101,7 +1101,7 @@ pub usingnamespace switch (builtin.arch) { |
| 1101 | Wvr: [2]DWORD64, | 1101 | Wvr: [2]DWORD64, |
| 1102 | | 1102 | |
| 1103 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { | 1103 | pub fn getRegs(ctx: *const CONTEXT) struct {bp: usize, ip: usize} { |
| 1104 | return .{.bp = @intCast(usize, ctx.DUMMYUNIONNAME.DUMMYSTRUCTNAME.Fp), .ip = @intCast(usize, ctx.Pc)}; | 1104 | return .{.bp = ctx.DUMMYUNIONNAME.DUMMYSTRUCTNAME.Fp, .ip = ctx.Pc}; |
| 1105 | } | 1105 | } |
| 1106 | }; | 1106 | }; |
| 1107 | | 1107 | |