add UC_HOOK_MEM_ALL macro to hook all kind of memory accesses
This commit is contained in:
@ -199,6 +199,8 @@ typedef enum uc_hook_type {
|
|||||||
#define UC_HOOK_MEM_WRITE_ALL (UC_HOOK_MEM_WRITE_ERR + UC_HOOK_MEM_WRITE)
|
#define UC_HOOK_MEM_WRITE_ALL (UC_HOOK_MEM_WRITE_ERR + UC_HOOK_MEM_WRITE)
|
||||||
// hook type for all events of fetch memory access
|
// hook type for all events of fetch memory access
|
||||||
#define UC_HOOK_MEM_FETCH_ALL (UC_HOOK_MEM_FETCH_ERR + UC_HOOK_MEM_FETCH)
|
#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)
|
// Callback function for hooking memory (UC_MEM_READ, UC_MEM_WRITE & UC_MEM_FETCH)
|
||||||
// @type: this memory is being READ, or WRITE
|
// @type: this memory is being READ, or WRITE
|
||||||
|
Reference in New Issue
Block a user