Undo the disaster that was the patch to unicorn github issue #266 and fix it correctly. makes normal self-modifying code work.

This commit is contained in:
Andrew Dutcher
2016-07-14 09:40:45 -07:00
parent 236b6e9085
commit 97b10da133
9 changed files with 24 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#include <unicorn/unicorn.h>
static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *user_data) {
printf("hook_block(…)\n");
printf("hook_block(%p, %lx, %d, %p)\n", uc, address, size, user_data);
}
/*