| 2369 | } |
| 2370 | |
| 2371 | bool 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 | |
| 2387 | void Executor::UpdateInstructionPointer() |
| 2388 | { |
no test coverage detected