Add a new hook type UC_HOOK_EDGE_GENERATED and corresponding sample

This commit is contained in:
2021-11-01 23:27:35 +01:00
parent b7e82d460c
commit c11b9aa5c3
5 changed files with 80 additions and 10 deletions

View File

@@ -1049,9 +1049,7 @@ static uc_err uc_gen_tb(struct uc_struct *uc, uint64_t addr, uc_tb *out_tb)
}
if (out_tb != NULL) {
out_tb->pc = tb->pc;
out_tb->size = tb->size;
out_tb->icount = tb->icount;
UC_TB_COPY(out_tb, tb);
}
return UC_ERR_OK;