From 2c826717046a2711d0f8f339f0d2bacd8d846893 Mon Sep 17 00:00:00 2001 From: Sascha Schirra Date: Sat, 22 Oct 2016 17:02:35 +0200 Subject: [PATCH 1/2] add command to create constants file for ruby --- bindings/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/Makefile b/bindings/Makefile index 3f4a8b89..dee75187 100644 --- a/bindings/Makefile +++ b/bindings/Makefile @@ -19,6 +19,7 @@ build: $(MAKE) -C python gen_const $(MAKE) -C go gen_const $(MAKE) -C java gen_const + $(MAKE) -C ruby gen_const python const_generator.py dotnet install: build From 2f15e2119d05698f2d8a3ebb4fa3eb0537ae20f7 Mon Sep 17 00:00:00 2001 From: Sascha Schirra Date: Sat, 22 Oct 2016 17:02:46 +0200 Subject: [PATCH 2/2] add new constants --- bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb index 7fe8a994..1543010d 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn/unicorn_const.rb @@ -58,6 +58,7 @@ module Unicorn UC_ERR_FETCH_UNALIGNED = 18 UC_ERR_HOOK_EXIST = 19 UC_ERR_RESOURCE = 20 + UC_ERR_EXCEPTION = 21 UC_MEM_READ = 16 UC_MEM_WRITE = 17 UC_MEM_FETCH = 18 @@ -67,6 +68,7 @@ module Unicorn UC_MEM_WRITE_PROT = 22 UC_MEM_READ_PROT = 23 UC_MEM_FETCH_PROT = 24 + UC_MEM_READ_AFTER = 25 UC_HOOK_INTR = 1 UC_HOOK_INSN = 2 UC_HOOK_CODE = 4 @@ -80,6 +82,7 @@ module Unicorn UC_HOOK_MEM_READ = 1024 UC_HOOK_MEM_WRITE = 2048 UC_HOOK_MEM_FETCH = 4096 + UC_HOOK_MEM_READ_AFTER = 8192 UC_HOOK_MEM_UNMAPPED = 112 UC_HOOK_MEM_PROT = 896 UC_HOOK_MEM_READ_INVALID = 144