Skip to content

Commit 6b7383c

Browse files
committed
fix hook support for Jackalope
1 parent c0aeb2b commit 6b7383c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

arch/arm64/arm64_litecov.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ InstructionResult LiteCov::InstrumentInstruction(ModuleInfo *module,
9090
Instruction &inst,
9191
size_t bb_address,
9292
size_t instruction_address) {
93+
94+
InstructionResult tinyinst_ret = TinyInst::InstrumentInstruction(module, inst, bb_address, instruction_address);
95+
if(tinyinst_ret != INST_NOTHANDLED) return tinyinst_ret;
96+
9397
if (!compare_coverage) {
9498
return INST_NOTHANDLED;
9599
}

arch/x86/x86_litecov.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ InstructionResult LiteCov::InstrumentInstruction(ModuleInfo *module,
154154
Instruction &inst,
155155
size_t bb_address,
156156
size_t instruction_address) {
157+
158+
InstructionResult tinyinst_ret = TinyInst::InstrumentInstruction(module, inst, bb_address, instruction_address);
159+
if(tinyinst_ret != INST_NOTHANDLED) return tinyinst_ret;
160+
157161
if (!compare_coverage) {
158162
return INST_NOTHANDLED;
159163
}

0 commit comments

Comments
 (0)