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

Function queuePatch

src/e9patch/e9api.cpp:114–126  ·  view source on GitHub ↗

* Queue an instruction for patching. */

Source from the content-addressed store, hash-verified

112 * Queue an instruction for patching.
113 */
114static void queuePatch(Binary *B, Instr *I, const Trampoline *T)
115{
116 for (unsigned i = 0; i < I->size; i++)
117 {
118 assert(I->STATE[i] == STATE_INSTRUCTION);
119 I->STATE[i] = STATE_QUEUED;
120 }
121
122 PatchEntry entry(I, T);
123 B->Q.push_front(entry);
124 if (!option_batch)
125 queueFlush(B, I->addr);
126}
127
128/*
129 * Parse a binary message.

Callers 1

parsePatchFunction · 0.85

Calls 1

queueFlushFunction · 0.85

Tested by

no test coverage detected