Skip to content

Commit

Permalink
Update uc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
secretnonempty authored and Junfeng Yang committed Mar 14, 2023
1 parent 271755e commit a612996
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 12 deletions.
3 changes: 1 addition & 2 deletions bindings/dotnet/UnicornEngine/Binding/BindingFactory.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine.Binding
namespace UnicornEngine.Binding


module BindingFactory =
Expand All @@ -9,4 +9,3 @@ module BindingFactory =

let getDefault() =
_instance

3 changes: 2 additions & 1 deletion bindings/dotnet/UnicornEngine/Binding/IBinding.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine.Binding
namespace UnicornEngine.Binding

open System

Expand All @@ -25,3 +25,4 @@ type IBinding =
abstract HookAddArg0 : UIntPtr * UIntPtr * Int32 * UIntPtr * IntPtr * UInt64 * UInt64 * Int32 -> Int32
abstract HookAddArg0Arg1 : UIntPtr * UIntPtr * Int32 * UIntPtr * IntPtr * UInt64 * UInt64 * UInt64 * UInt64 -> Int32
end

4 changes: 2 additions & 2 deletions bindings/dotnet/UnicornEngine/Binding/MockBinding.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine.Binding
namespace UnicornEngine.Binding

open System

Expand Down Expand Up @@ -48,4 +48,4 @@ module internal MockBinding =
member thi.HookAddArg0(eng, hh, callbackType, callback, userData, hookBegin, hookEnd, arg0) = hook_add_arg0(eng, hh, callbackType, callback, userData, hookBegin, hookEnd, arg0)
member thi.HookAddArg0Arg1(eng, hh, callbackType, callback, userData, hookBegin, hookEnd, arg0, arg1) = hook_add_arg0_arg1(eng, hh, callbackType, callback, userData, hookBegin, hookEnd, arg0, arg1)
}

1 change: 1 addition & 0 deletions bindings/dotnet/UnicornEngine/Const/Arm.fs
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,4 @@ module Arm =
let UC_ARM_REG_SL = 76
let UC_ARM_REG_FP = 77
let UC_ARM_REG_IP = 78

1 change: 1 addition & 0 deletions bindings/dotnet/UnicornEngine/Const/M68k.fs
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ module M68k =
let UC_M68K_REG_SR = 17
let UC_M68K_REG_PC = 18
let UC_M68K_REG_ENDING = 19

1 change: 1 addition & 0 deletions bindings/dotnet/UnicornEngine/Const/Ppc.fs
Original file line number Diff line number Diff line change
Expand Up @@ -409,3 +409,4 @@ module Ppc =
let UC_PPC_REG_FPSCR = 78
let UC_PPC_REG_CR = 79
let UC_PPC_REG_ENDING = 80

2 changes: 1 addition & 1 deletion bindings/dotnet/UnicornEngine/ConvertUtility.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine
namespace UnicornEngine

open System

Expand Down
2 changes: 1 addition & 1 deletion bindings/dotnet/UnicornEngine/InternalHooks.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine
namespace UnicornEngine

open System
open System.Runtime.InteropServices
Expand Down
3 changes: 1 addition & 2 deletions bindings/dotnet/UnicornEngine/Unicorn.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace UnicornEngine
namespace UnicornEngine

open System
open System.Collections.Generic
Expand Down Expand Up @@ -354,4 +354,3 @@ and Unicorn(arch: Int32, mode: Int32, binding: IBinding) =
interface IDisposable with
member this.Dispose() =
this.Dispose()

2 changes: 1 addition & 1 deletion bindings/dotnet/UnicornEngine/UnicornEngine.fsproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageId>UnicornEngine.Unicorn</PackageId>
Expand Down
3 changes: 2 additions & 1 deletion bindings/dotnet/UnicornEngine/UnicornEngineException.fs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
namespace UnicornEngine
namespace UnicornEngine

open System

type UnicornEngineException(errNo: Int32, msg: String) =
inherit ApplicationException(msg)

member this.ErrorNo = errNo

2 changes: 1 addition & 1 deletion uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,4 +2403,4 @@ void trace_end(uc_tracer *tracer, trace_loc loc, const char *fmt, ...)
fprintf(stderr, "%.6fus\n",
(double)(end - tracer->starts[loc]) / (double)(1000));
}
#endif
#endif

0 comments on commit a612996

Please sign in to comment.