diff options
author | Andrew Au <andrewau@microsoft.com> | 2017-03-16 03:37:23 +0300 |
---|---|---|
committer | Andrew Au <andrewau@microsoft.com> | 2017-03-16 03:37:23 +0300 |
commit | 37778ec77a542749b45651d5c9f57b46b604f1e8 (patch) | |
tree | fba7f4c18bde14940d63bac33fb966ccdf2d8bf5 /src/Runtime.Base | |
parent | 3ddb35b8a2715496eaaa1135cd34d6023e1f3cc5 (diff) |
Debugger Support
[tfs-changeset: 1650991]
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r-- | src/Runtime.Base/src/Runtime.Base.csproj | 1 | ||||
-rw-r--r-- | src/Runtime.Base/src/System/Diagnostics/Eval.cs | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/Runtime.Base/src/Runtime.Base.csproj b/src/Runtime.Base/src/Runtime.Base.csproj index cbbb91c1b..4a25c134e 100644 --- a/src/Runtime.Base/src/Runtime.Base.csproj +++ b/src/Runtime.Base/src/Runtime.Base.csproj @@ -83,6 +83,7 @@ <Compile Include="System\Void.cs" /> <Compile Include="System\Diagnostics\ConditionalAttribute.cs" /> <Compile Include="System\Diagnostics\Debug.cs" /> + <Compile Include="System\Diagnostics\Eval.cs" /> <Compile Include="System\Runtime\__Finalizer.cs" /> <Compile Include="System\Runtime\CalliIntrinsics.cs" /> <Compile Include="System\Runtime\CastableObjectSupport.cs" /> diff --git a/src/Runtime.Base/src/System/Diagnostics/Eval.cs b/src/Runtime.Base/src/System/Diagnostics/Eval.cs new file mode 100644 index 000000000..eaa76dfe4 --- /dev/null +++ b/src/Runtime.Base/src/System/Diagnostics/Eval.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Runtime; +using System.Runtime.CompilerServices; + +namespace System.Diagnostics +{ + public static class Eval + { + private static IntPtr s_highLevelDebugFuncEvalHelper; + + [MethodImpl(MethodImplOptions.NoInlining)] + [RuntimeExport("RhpSetHighLevelDebugFuncEvalHelper")] + public static void SetHighLevelDebugFuncEvalHelper(IntPtr ptr) + { + s_highLevelDebugFuncEvalHelper = ptr; + } + + [MethodImpl(MethodImplOptions.NoInlining)] + [RuntimeExport("RhpDebugFuncEvalHelper")] + public static void RhpDebugFuncEvalHelper() + { + CalliIntrinsics.CallVoid(s_highLevelDebugFuncEvalHelper); + } + } +}
\ No newline at end of file |