diff options
author | Andrew Au <andrewau@microsoft.com> | 2017-01-28 00:38:38 +0300 |
---|---|---|
committer | Andrew Au <andrewau@microsoft.com> | 2017-01-28 00:38:38 +0300 |
commit | c5fb9d467e13171c2410df685450784e40f58a8a (patch) | |
tree | 926fa2ae6f9fb8298ff14085072170c55a40753d /src/Native/Runtime/DebugFuncEval.cpp | |
parent | 90ff87d57eaf575d730dfcc5912b955a7dd5185d (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.cpp | 18 |
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 |