when an invalid instruction is encountered emit a breakpoint followed by crashing the process
| 613 | // when an invalid instruction is encountered |
| 614 | // emit a breakpoint followed by crashing the process |
| 615 | void TinyDBR::InvalidInstruction(ModuleInfo* module) |
| 616 | { |
| 617 | size_t breakpoint_address = (size_t)module->instrumented_code_remote + |
| 618 | module->instrumented_code_allocated; |
| 619 | assembler_->Breakpoint(module); |
| 620 | module->invalid_instructions.insert(breakpoint_address); |
| 621 | assembler_->Crash(module); |
| 622 | } |
| 623 | |
| 624 | void TinyDBR::InstrumentIndirect(ModuleInfo* module, |
| 625 | Instruction& inst, |
no test coverage detected