@@ -210,13 +210,13 @@ SharedPatchBypassBuffer* DebuggerControllerPatch::GetOrCreateSharedPatchBypassBu
210210 //
211211
212212 BYTE* bufferBypassRW = pSharedPatchBypassBufferRW->BypassBuffer ;
213-
213+
214214 // Overwrite the *signed* displacement.
215215 int dwOldDisp = *(int *)(&patchBypassRX[instrAttrib.m_dwOffsetToDisp ]);
216216 int dwNewDisp = offsetof (SharedPatchBypassBuffer, BypassBuffer) -
217217 (offsetof (SharedPatchBypassBuffer, PatchBypass) + instrAttrib.m_cbInstr );
218218 *(int *)(&patchBypassRW[instrAttrib.m_dwOffsetToDisp ]) = dwNewDisp;
219-
219+
220220 // This could be an LEA, which we'll just have to change into a MOV and copy the original address.
221221 if (((patchBypassRX[0 ] == 0x4C ) || (patchBypassRX[0 ] == 0x48 )) && (patchBypassRX[1 ] == 0x8d ))
222222 {
@@ -229,7 +229,7 @@ SharedPatchBypassBuffer* DebuggerControllerPatch::GetOrCreateSharedPatchBypassBu
229229 _ASSERTE (instrAttrib.m_cOperandSize <= SharedPatchBypassBuffer::cbBufferBypass);
230230 // Copy the data into our buffer.
231231 memcpy (bufferBypassRW, this ->address + instrAttrib.m_cbInstr + dwOldDisp, instrAttrib.m_cOperandSize );
232-
232+
233233 if (instrAttrib.m_fIsWrite )
234234 {
235235 // save the actual destination address and size so when we TriggerSingleStep() we can update the value
@@ -238,17 +238,17 @@ SharedPatchBypassBuffer* DebuggerControllerPatch::GetOrCreateSharedPatchBypassBu
238238 }
239239 }
240240 }
241-
241+
242242 #endif // TARGET_AMD64
243243
244244 m_pSharedPatchBypassBuffer->SetInstructionAttrib (instrAttrib);
245-
245+
246246 // Since we just created a new buffer of code, but the CPU caches code and may
247247 // not be aware of our changes. This should force the CPU to dump any cached
248248 // instructions it has in this region and load the new ones from memory
249249 FlushInstructionCache (GetCurrentProcess (), patchBypassRW + CORDbg_BREAK_INSTRUCTION_SIZE,
250250 MAX_INSTRUCTION_LENGTH - CORDbg_BREAK_INSTRUCTION_SIZE);
251-
251+
252252 return m_pSharedPatchBypassBuffer;
253253}
254254#endif // !FEATURE_EMULATE_SINGLESTEP
@@ -2405,29 +2405,29 @@ static bool _AddrIsJITHelper(PCODE addr)
24052405 {
24062406 for (int i = 0 ; i < CORINFO_HELP_COUNT; i++)
24072407 {
2408- if (hlpFuncTable[i].pfnHelper == ( void *) addr)
2408+ if (hlpFuncTable[i].pfnHelper == addr)
24092409 {
24102410 LOG ((LF_CORDB, LL_INFO10000,
2411- " _ANIM: address of helper function found: 0x%08x \n " ,
2411+ " _ANIM: address of helper function found: 0x%zx \n " ,
24122412 addr));
24132413 return true ;
24142414 }
24152415 }
24162416
24172417 for (unsigned d = 0 ; d < DYNAMIC_CORINFO_HELP_COUNT; d++)
24182418 {
2419- if (hlpDynamicFuncTable[d].pfnHelper == ( void *) addr)
2419+ if (hlpDynamicFuncTable[d].pfnHelper == addr)
24202420 {
24212421 LOG ((LF_CORDB, LL_INFO10000,
2422- " _ANIM: address of helper function found: 0x%08x \n " ,
2422+ " _ANIM: address of helper function found: 0x%zx \n " ,
24232423 addr));
24242424 return true ;
24252425 }
24262426 }
24272427
24282428 LOG ((LF_CORDB, LL_INFO10000,
24292429 " _ANIM: address within runtime dll, but not a helper function "
2430- " 0x%08x \n " , addr));
2430+ " 0x%zx \n " , addr));
24312431 }
24322432#else // !defined(HOST_64BIT) && !defined(TARGET_UNIX)
24332433 // TODO: Figure out what we want to do here
0 commit comments