@@ -124,35 +124,35 @@ extern "C" bool AwaitDebugEvent(DebugEvent* evt, int timeoutInMilliseconds)
124
124
125
125
// Copy registers.
126
126
auto & reg = evt->ExceptionInfo .Registers ;
127
- #ifdef __x86_64__
128
- reg.Rax = static_cast <RC_Pointer>(regs.rax );
129
- reg.Rbx = static_cast <RC_Pointer>(regs.rbx );
130
- reg.Rcx = static_cast <RC_Pointer>(regs.rcx );
131
- reg.Rdx = static_cast <RC_Pointer>(regs.rdx );
132
- reg.Rdi = static_cast <RC_Pointer>(regs.rdi );
133
- reg.Rsi = static_cast <RC_Pointer>(regs.rsi );
134
- reg.Rsp = static_cast <RC_Pointer>(regs.rsp );
135
- reg.Rbp = static_cast <RC_Pointer>(regs.rbp );
136
- reg.Rip = static_cast <RC_Pointer>(regs.rip );
137
-
138
- reg.R8 = static_cast <RC_Pointer>(regs.r8 );
139
- reg.R9 = static_cast <RC_Pointer>(regs.r9 );
140
- reg.R10 = static_cast <RC_Pointer>(regs.r10 );
141
- reg.R11 = static_cast <RC_Pointer>(regs.r11 );
142
- reg.R12 = static_cast <RC_Pointer>(regs.r12 );
143
- reg.R13 = static_cast <RC_Pointer>(regs.r13 );
144
- reg.R14 = static_cast <RC_Pointer>(regs.r14 );
145
- reg.R15 = static_cast <RC_Pointer>(regs.r15 );
127
+ #ifdef RECLASSNET64
128
+ reg.Rax = reinterpret_cast <RC_Pointer>(regs.rax );
129
+ reg.Rbx = reinterpret_cast <RC_Pointer>(regs.rbx );
130
+ reg.Rcx = reinterpret_cast <RC_Pointer>(regs.rcx );
131
+ reg.Rdx = reinterpret_cast <RC_Pointer>(regs.rdx );
132
+ reg.Rdi = reinterpret_cast <RC_Pointer>(regs.rdi );
133
+ reg.Rsi = reinterpret_cast <RC_Pointer>(regs.rsi );
134
+ reg.Rsp = reinterpret_cast <RC_Pointer>(regs.rsp );
135
+ reg.Rbp = reinterpret_cast <RC_Pointer>(regs.rbp );
136
+ reg.Rip = reinterpret_cast <RC_Pointer>(regs.rip );
137
+
138
+ reg.R8 = reinterpret_cast <RC_Pointer>(regs.r8 );
139
+ reg.R9 = reinterpret_cast <RC_Pointer>(regs.r9 );
140
+ reg.R10 = reinterpret_cast <RC_Pointer>(regs.r10 );
141
+ reg.R11 = reinterpret_cast <RC_Pointer>(regs.r11 );
142
+ reg.R12 = reinterpret_cast <RC_Pointer>(regs.r12 );
143
+ reg.R13 = reinterpret_cast <RC_Pointer>(regs.r13 );
144
+ reg.R14 = reinterpret_cast <RC_Pointer>(regs.r14 );
145
+ reg.R15 = reinterpret_cast <RC_Pointer>(regs.r15 );
146
146
#else
147
- reg.Eax = static_cast <RC_Pointer>(regs.eax );
148
- reg.Ebx = static_cast <RC_Pointer>(regs.ebx );
149
- reg.Ecx = static_cast <RC_Pointer>(regs.ecx );
150
- reg.Edx = static_cast <RC_Pointer>(regs.edx );
151
- reg.Edi = static_cast <RC_Pointer>(regs.edi );
152
- reg.Esi = static_cast <RC_Pointer>(regs.esi );
153
- reg.Esp = static_cast <RC_Pointer>(regs.esp );
154
- reg.Ebp = static_cast <RC_Pointer>(regs.ebp );
155
- reg.Eip = static_cast <RC_Pointer>(regs.eip );
147
+ reg.Eax = reinterpret_cast <RC_Pointer>(regs.eax );
148
+ reg.Ebx = reinterpret_cast <RC_Pointer>(regs.ebx );
149
+ reg.Ecx = reinterpret_cast <RC_Pointer>(regs.ecx );
150
+ reg.Edx = reinterpret_cast <RC_Pointer>(regs.edx );
151
+ reg.Edi = reinterpret_cast <RC_Pointer>(regs.edi );
152
+ reg.Esi = reinterpret_cast <RC_Pointer>(regs.esi );
153
+ reg.Esp = reinterpret_cast <RC_Pointer>(regs.esp );
154
+ reg.Ebp = reinterpret_cast <RC_Pointer>(regs.ebp );
155
+ reg.Eip = reinterpret_cast <RC_Pointer>(regs.eip );
156
156
#endif
157
157
158
158
result = true ;
0 commit comments