Fix typo
This commit is contained in:
parent
1507f90059
commit
01d7e454b7
@ -496,18 +496,18 @@ typedef enum uc_control_type {
|
||||
// Current timeout.
|
||||
// Read: @args = (uint64_t*)
|
||||
UC_CTL_UC_TIMEOUT,
|
||||
// Enable multiple exists.
|
||||
// Without this control, reading/setting exists won't work.
|
||||
// Enable multiple exits.
|
||||
// Without this control, reading/setting exits won't work.
|
||||
// This is for API backward compatibility.
|
||||
// Write: @args = (int)
|
||||
UC_CTL_UC_USE_EXITS,
|
||||
// The number of current exists.
|
||||
// The number of current exits.
|
||||
// Read: @args = (size_t*)
|
||||
UC_CTL_UC_EXITS_CNT,
|
||||
// Current exists.
|
||||
// Write: @args = (uint64_t* exists, size_t len)
|
||||
// Current exits.
|
||||
// Write: @args = (uint64_t* exits, size_t len)
|
||||
// @len = UC_CTL_UC_EXITS_CNT
|
||||
// Read: @args = (uint64_t* exists, size_t len)
|
||||
// Read: @args = (uint64_t* exits, size_t len)
|
||||
// @len = UC_CTL_UC_EXITS_CNT
|
||||
UC_CTL_UC_EXITS,
|
||||
|
||||
@ -538,11 +538,11 @@ typedef enum uc_control_type {
|
||||
uc_ctl(uc, UC_CTL_READ(UC_CTL_UC_TIMEOUT, 1), (ptr))
|
||||
#define uc_ctl_exits_enabled(uc, enabled) \
|
||||
uc_ctl(uc, UC_CTL_WRITE(UC_CTL_UC_USE_EXITS, 1), (enabled))
|
||||
#define uc_ctl_get_exists_cnt(uc, ptr) \
|
||||
#define uc_ctl_get_exits_cnt(uc, ptr) \
|
||||
uc_ctl(uc, UC_CTL_READ(UC_CTL_UC_EXITS_CNT, 1), (ptr))
|
||||
#define uc_ctl_get_exists(uc, buffer, len) \
|
||||
#define uc_ctl_get_exits(uc, buffer, len) \
|
||||
uc_ctl(uc, UC_CTL_READ(UC_CTL_UC_EXITS, 2), (buffer), (len))
|
||||
#define uc_ctl_set_exists(uc, buffer, len) \
|
||||
#define uc_ctl_set_exits(uc, buffer, len) \
|
||||
uc_ctl(uc, UC_CTL_WRITE(UC_CTL_UC_EXITS, 2), (buffer), (len))
|
||||
#define uc_ctl_get_cpu_model(uc, model) \
|
||||
uc_ctl(uc, UC_CTL_READ(UC_CTL_CPU_MODEL, 1), (model))
|
||||
|
@ -89,7 +89,7 @@ static void test_uc_ctl_exits()
|
||||
|
||||
uc_common_setup(&uc, UC_ARCH_X86, UC_MODE_32, code, sizeof(code) - 1);
|
||||
OK(uc_ctl_exits_enabled(uc, true));
|
||||
OK(uc_ctl_set_exists(uc, exits, 2));
|
||||
OK(uc_ctl_set_exits(uc, exits, 2));
|
||||
r_eax = 0;
|
||||
r_ebx = 0;
|
||||
OK(uc_reg_write(uc, UC_X86_REG_EAX, &r_eax));
|
||||
|
Loading…
Reference in New Issue
Block a user