Force nop for breakpoint() to avoid elimination if alone in basic block

This commit is contained in:
drmortalwombat 2025-05-16 17:25:58 +02:00
parent 6ea39d7bfa
commit 0b72e6b2f2

View File

@ -5243,6 +5243,7 @@ void NativeCodeInstruction::Assemble(NativeCodeBasicBlock* block)
rl.mFlags = LREF_BREAKPOINT; rl.mFlags = LREF_BREAKPOINT;
block->mRelocations.Push(rl); block->mRelocations.Push(rl);
block->PutByte(0xEA);
} }
else if (mType == ASMIT_JSR && mLinkerObject && (mLinkerObject->mFlags & LOBJF_INLINE)) else if (mType == ASMIT_JSR && mLinkerObject && (mLinkerObject->mFlags & LOBJF_INLINE))
{ {