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

Method RemoveBreakpoint

NULLC/Executor.cpp:2371–2385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2369}
2370
2371bool Executor::RemoveBreakpoint(unsigned int instruction)
2372{
2373 if(instruction > exLinker->exCode.size())
2374 {
2375 SafeSprintf(execError, ERROR_BUFFER_SIZE, "ERROR: break position out of code range");
2376 return false;
2377 }
2378 if(exLinker->exCode[instruction].cmd != cmdNop)
2379 {
2380 SafeSprintf(execError, ERROR_BUFFER_SIZE, "ERROR: there is no breakpoint at instruction %d", instruction);
2381 return false;
2382 }
2383 exLinker->exCode[instruction] = breakCode[exLinker->exCode[instruction].argument];
2384 return true;
2385}
2386
2387void Executor::UpdateInstructionPointer()
2388{

Callers 1

Calls 2

SafeSprintfFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected