From dc1e9d36264d01cf332fd5e2e919db330f7a259c Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Thu, 24 Sep 2015 23:23:05 +0800 Subject: [PATCH] remove UC_HOOK_*_ALL hook types as they are not for same hook handlers --- include/unicorn/unicorn.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 8fd36c9e..75f47064 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -193,14 +193,6 @@ typedef enum uc_hook_type { #define UC_HOOK_MEM_FETCH_ERR (UC_HOOK_MEM_FETCH_PROT + UC_HOOK_MEM_FETCH_INVALID) // hook type for all events of illegal memory access #define UC_HOOK_MEM_ERR (UC_HOOK_MEM_INVALID + UC_HOOK_MEM_PROT) -// hook type for all events of read memory access -#define UC_HOOK_MEM_READ_ALL (UC_HOOK_MEM_READ_ERR + UC_HOOK_MEM_READ) -// hook type for all events of write memory access -#define UC_HOOK_MEM_WRITE_ALL (UC_HOOK_MEM_WRITE_ERR + UC_HOOK_MEM_WRITE) -// hook type for all events of fetch memory access -#define UC_HOOK_MEM_FETCH_ALL (UC_HOOK_MEM_FETCH_ERR + UC_HOOK_MEM_FETCH) -// hook type for all events of memory access -#define UC_HOOK_MEM_ALL (UC_HOOK_READ_ALL + UC_HOOK_WRITE_ALL + UC_HOOK_FETCH_ALL) // Callback function for hooking memory (UC_MEM_READ, UC_MEM_WRITE & UC_MEM_FETCH) // @type: this memory is being READ, or WRITE