MCPcopy Create free account
hub / github.com/WheretIB/nullc / ClearBreakpoints

Method ClearBreakpoints

NULLC/Executor.cpp:2329–2340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2327}
2328
2329void Executor::ClearBreakpoints()
2330{
2331 // Check all instructions for break instructions
2332 for(unsigned int i = 0; i < exLinker->exCode.size(); i++)
2333 {
2334 // nop instruction is used for breaks
2335 // break structure: cmdOriginal, cmdNop
2336 if(exLinker->exCode[i].cmd == cmdNop)
2337 exLinker->exCode[i] = breakCode[exLinker->exCode[i].argument]; // replace it with original instruction
2338 }
2339 breakCode.clear();
2340}
2341
2342bool Executor::AddBreakpoint(unsigned int instruction, bool oneHit)
2343{

Callers 2

nullcCleanFunction · 0.45

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected