MCPcopy Create free account
hub / github.com/Inori/GPCS4 / InvalidInstruction

Method InvalidInstruction

3rdParty/tinydbr/tinydbr.cpp:615–622  ·  view source on GitHub ↗

when an invalid instruction is encountered emit a breakpoint followed by crashing the process

Source from the content-addressed store, hash-verified

613// when an invalid instruction is encountered
614// emit a breakpoint followed by crashing the process
615void 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
624void TinyDBR::InstrumentIndirect(ModuleInfo* module,
625 Instruction& inst,

Callers 1

HandleBasicBlockEndMethod · 0.80

Calls 3

BreakpointMethod · 0.80
CrashMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected