From 93720ae1f01d775b61c3d168c69c33d142528b7f Mon Sep 17 00:00:00 2001 From: naq Date: Tue, 14 Jan 2020 09:18:28 -0500 Subject: [PATCH] bindings: update after addition of UC_HOOK_INSN_INVALID Backports commit 355eaecc12b8022ccefac432dfa003fdb642c0f5 from unicorn. --- bindings/dotnet/UnicornManaged/Const/Common.fs | 1 + bindings/go/unicorn/unicorn_const.go | 1 + bindings/java/unicorn/UnicornConst.java | 1 + bindings/pascal/unicorn/UnicornConst.pas | 1 + bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb | 1 + 5 files changed, 5 insertions(+) diff --git a/bindings/dotnet/UnicornManaged/Const/Common.fs b/bindings/dotnet/UnicornManaged/Const/Common.fs index e09cb41f..e20d5ac6 100644 --- a/bindings/dotnet/UnicornManaged/Const/Common.fs +++ b/bindings/dotnet/UnicornManaged/Const/Common.fs @@ -92,6 +92,7 @@ module Common = let UC_HOOK_MEM_WRITE = 2048 let UC_HOOK_MEM_FETCH = 4096 let UC_HOOK_MEM_READ_AFTER = 8192 + let UC_HOOK_INSN_INVALID = 16384 let UC_HOOK_MEM_UNMAPPED = 112 let UC_HOOK_MEM_PROT = 896 let UC_HOOK_MEM_READ_INVALID = 144 diff --git a/bindings/go/unicorn/unicorn_const.go b/bindings/go/unicorn/unicorn_const.go index 91c706d5..d90041f6 100644 --- a/bindings/go/unicorn/unicorn_const.go +++ b/bindings/go/unicorn/unicorn_const.go @@ -87,6 +87,7 @@ const ( HOOK_MEM_WRITE = 2048 HOOK_MEM_FETCH = 4096 HOOK_MEM_READ_AFTER = 8192 + HOOK_INSN_INVALID = 16384 HOOK_MEM_UNMAPPED = 112 HOOK_MEM_PROT = 896 HOOK_MEM_READ_INVALID = 144 diff --git a/bindings/java/unicorn/UnicornConst.java b/bindings/java/unicorn/UnicornConst.java index fe399839..21244d1a 100644 --- a/bindings/java/unicorn/UnicornConst.java +++ b/bindings/java/unicorn/UnicornConst.java @@ -89,6 +89,7 @@ public interface UnicornConst { public static final int UC_HOOK_MEM_WRITE = 2048; public static final int UC_HOOK_MEM_FETCH = 4096; public static final int UC_HOOK_MEM_READ_AFTER = 8192; + public static final int UC_HOOK_INSN_INVALID = 16384; public static final int UC_HOOK_MEM_UNMAPPED = 112; public static final int UC_HOOK_MEM_PROT = 896; public static final int UC_HOOK_MEM_READ_INVALID = 144; diff --git a/bindings/pascal/unicorn/UnicornConst.pas b/bindings/pascal/unicorn/UnicornConst.pas index 5c44151d..5ef963ca 100644 --- a/bindings/pascal/unicorn/UnicornConst.pas +++ b/bindings/pascal/unicorn/UnicornConst.pas @@ -90,6 +90,7 @@ const UC_API_MAJOR = 1; UC_HOOK_MEM_WRITE = 2048; UC_HOOK_MEM_FETCH = 4096; UC_HOOK_MEM_READ_AFTER = 8192; + UC_HOOK_INSN_INVALID = 16384; UC_HOOK_MEM_UNMAPPED = 112; UC_HOOK_MEM_PROT = 896; UC_HOOK_MEM_READ_INVALID = 144; diff --git a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb index e2ad8c89..71143a59 100644 --- a/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb +++ b/bindings/ruby/unicorn_gem/lib/unicorn_engine/unicorn_const.rb @@ -87,6 +87,7 @@ module UnicornEngine UC_HOOK_MEM_WRITE = 2048 UC_HOOK_MEM_FETCH = 4096 UC_HOOK_MEM_READ_AFTER = 8192 + UC_HOOK_INSN_INVALID = 16384 UC_HOOK_MEM_UNMAPPED = 112 UC_HOOK_MEM_PROT = 896 UC_HOOK_MEM_READ_INVALID = 144