Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Au <andrewau@microsoft.com>2017-01-28 00:38:38 +0300
committerAndrew Au <andrewau@microsoft.com>2017-01-28 00:38:38 +0300
commitc5fb9d467e13171c2410df685450784e40f58a8a (patch)
tree926fa2ae6f9fb8298ff14085072170c55a40753d /src/Native/Runtime/DebugFuncEval.cpp
parent90ff87d57eaf575d730dfcc5912b955a7dd5185d (diff)
FuncEval #1 - Introduce a DAC accessible global variable in the runtime to store the address of the method to be called in a FuncEval.
[tfs-changeset: 1645909]
Diffstat (limited to 'src/Native/Runtime/DebugFuncEval.cpp')
-rw-r--r--src/Native/Runtime/DebugFuncEval.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Native/Runtime/DebugFuncEval.cpp b/src/Native/Runtime/DebugFuncEval.cpp
new file mode 100644
index 000000000..330d47883
--- /dev/null
+++ b/src/Native/Runtime/DebugFuncEval.cpp
@@ -0,0 +1,18 @@
+// 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.
+
+#include "common.h"
+#include "CommonTypes.h"
+#include "DebugFuncEval.h"
+
+GVAL_IMPL_INIT(UInt64, g_FuncEvalTarget, 0);
+
+#ifndef DACCESS_COMPILE
+
+void* DebugFuncEval::GetFuncEvalTarget()
+{
+ return (void*)g_FuncEvalTarget;
+}
+
+#endif //!DACCESS_COMPILE