s/uc_hook_h/uchook/g

This commit is contained in:
Jonathon Reinhart
2015-09-03 22:39:23 -04:00
parent 99e34d212a
commit 5f32e2c1ae
20 changed files with 38 additions and 38 deletions

View File

@@ -62,7 +62,7 @@ int main() {
}
fprintf(stderr, "ok %d - uc_mem_write\n", count++);
uc_hook_h h1, h2;
uchook h1, h2;
err = uc_hook_add(uc, &h1, UC_HOOK_BLOCK, cb_hookblock, NULL, (uint64_t)1, (uint64_t)0);
if (err != UC_ERR_OK) {

View File

@@ -55,7 +55,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint32_t eax, ebx;

View File

@@ -90,7 +90,7 @@ static void hook_mem_write(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint8_t buf1[100], readbuf[100];

View File

@@ -95,7 +95,7 @@ static bool hook_mem_invalid(ucengine *uc, uc_mem_type type,
int main(int argc, char **argv, char **envp)
{
ucengine *uc;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
uc_err err;
uint8_t bytes[8];
uint32_t esp;

View File

@@ -21,7 +21,7 @@ int main()
int size;
uint8_t *buf;
ucengine *uc;
uc_hook_h uh_trap;
uchook uh_trap;
uc_err err = uc_open (UC_ARCH_X86, UC_MODE_64, &uc);
if (err) {
fprintf (stderr, "Cannot initialize unicorn\n");

View File

@@ -38,7 +38,7 @@ static void test_arm(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int r0 = 0x1234; // R0 register
int r2 = 0x6789; // R1 register
@@ -94,7 +94,7 @@ static void test_thumb(void)
{
ucengine *uc;
uc_err err;
uc_hook_h trace1, trace2;
uchook trace1, trace2;
int sp = 0x1234; // R0 register