MCPcopy Create free account
hub / github.com/GJDuck/e9patch / canPatch

Function canPatch

src/e9patch/e9tactics.cpp:422–431  ·  view source on GitHub ↗

* Return true if the given instruction can be instrumented. */

Source from the content-addressed store, hash-verified

420 * Return true if the given instruction can be instrumented.
421 */
422static bool canPatch(const Instr *I)
423{
424 switch (I->STATE[0])
425 {
426 case STATE_INSTRUCTION: case STATE_FREE:
427 return true;
428 default:
429 return false;
430 }
431}
432
433/*
434 * Tactic B0: replace the instruction with an illegal instruction.

Callers 7

tactic_B1Function · 0.85
tactic_B2Function · 0.85
tactic_T1Function · 0.85
tactic_T2Function · 0.85
tactic_T3bFunction · 0.85
tactic_T3Function · 0.85
tactic_T0Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected