From 8aba3170c6f6c316dac80eb26b1ec524166684d3 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Sat, 29 Aug 2015 09:03:12 +0800 Subject: [PATCH] bindings: update consts after the latest change in the core --- bindings/go/unicorn/unicorn_const.go | 5 ++++- bindings/python/unicorn/unicorn_const.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bindings/go/unicorn/unicorn_const.go b/bindings/go/unicorn/unicorn_const.go index 0b9fd7d8..62effcc3 100644 --- a/bindings/go/unicorn/unicorn_const.go +++ b/bindings/go/unicorn/unicorn_const.go @@ -46,9 +46,13 @@ const ( UC_ERR_HOOK = 10 UC_ERR_INSN_INVALID = 11 UC_ERR_MAP = 12 + UC_ERR_MEM_WRITE_NW = 13 + UC_ERR_MEM_READ_NR = 14 UC_MEM_READ = 16 UC_MEM_WRITE = 17 UC_MEM_READ_WRITE = 18 + UC_MEM_WRITE_NW = 19 + UC_MEM_READ_NR = 20 UC_HOOK_INTR = 32 UC_HOOK_INSN = 33 UC_HOOK_CODE = 34 @@ -59,5 +63,4 @@ const ( UC_HOOK_MEM_READ_WRITE = 39 UC_PROT_READ = 1 UC_PROT_WRITE = 2 - UC_PROT_EXEC = 4 ) \ No newline at end of file diff --git a/bindings/python/unicorn/unicorn_const.py b/bindings/python/unicorn/unicorn_const.py index eaca8f19..bbcff20c 100644 --- a/bindings/python/unicorn/unicorn_const.py +++ b/bindings/python/unicorn/unicorn_const.py @@ -44,9 +44,13 @@ UC_ERR_CODE_INVALID = 9 UC_ERR_HOOK = 10 UC_ERR_INSN_INVALID = 11 UC_ERR_MAP = 12 +UC_ERR_MEM_WRITE_NW = 13 +UC_ERR_MEM_READ_NR = 14 UC_MEM_READ = 16 UC_MEM_WRITE = 17 UC_MEM_READ_WRITE = 18 +UC_MEM_WRITE_NW = 19 +UC_MEM_READ_NR = 20 UC_HOOK_INTR = 32 UC_HOOK_INSN = 33 UC_HOOK_CODE = 34 @@ -57,4 +61,3 @@ UC_HOOK_MEM_WRITE = 38 UC_HOOK_MEM_READ_WRITE = 39 UC_PROT_READ = 1 UC_PROT_WRITE = 2 -UC_PROT_EXEC = 4