callback to count number of instructions in uc_emu_start() should be executed first. fix #727
This commit is contained in:
@ -12,9 +12,19 @@ struct list {
|
||||
struct list_item *head, *tail;
|
||||
};
|
||||
|
||||
// create a new list
|
||||
struct list *list_new(void);
|
||||
|
||||
// removed linked list nodes but does not free their content
|
||||
void list_clear(struct list *list);
|
||||
|
||||
// insert a new item at the begin of the list.
|
||||
void *list_insert(struct list *list, void *data);
|
||||
|
||||
// append a new item at the end of the list.
|
||||
void *list_append(struct list *list, void *data);
|
||||
|
||||
// returns true if entry was removed, false otherwise
|
||||
bool list_remove(struct list *list, void *data);
|
||||
|
||||
#endif
|
||||
|
@ -244,6 +244,7 @@ struct uc_struct {
|
||||
uint32_t target_page_size;
|
||||
uint32_t target_page_align;
|
||||
uint64_t next_pc; // save next PC for some special cases
|
||||
bool hook_insert; // insert new hook at begin of the hook list (append by default)
|
||||
};
|
||||
|
||||
// Metadata stub for the variable-size cpu context used with uc_context_*()
|
||||
|
Reference in New Issue
Block a user