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-06-17 00:32:39 +0300
committerAndrew Au <andrewau@microsoft.com>2017-06-17 00:32:39 +0300
commit8ad71c3554bd74a792c5bfd52d8fea98e2fe1218 (patch)
treed6bf3d8f74b28787d8143a88fbf64ce90b97d94e /src/Native/Runtime/DebugFuncEval.cpp
parent9b5108849025b1d1ea5f780c8bfefbf1783eee36 (diff)
Debugger Support
[tfs-changeset: 1661991]
Diffstat (limited to 'src/Native/Runtime/DebugFuncEval.cpp')
-rw-r--r--src/Native/Runtime/DebugFuncEval.cpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/Native/Runtime/DebugFuncEval.cpp b/src/Native/Runtime/DebugFuncEval.cpp
index 75ed8e808..5d695909f 100644
--- a/src/Native/Runtime/DebugFuncEval.cpp
+++ b/src/Native/Runtime/DebugFuncEval.cpp
@@ -6,6 +6,7 @@
#include "CommonTypes.h"
#include "DebugFuncEval.h"
+GVAL_IMPL_INIT(UInt32, g_FuncEvalMode, 0);
GVAL_IMPL_INIT(UInt64, g_FuncEvalTarget, 0);
GVAL_IMPL_INIT(UInt32, g_FuncEvalParameterBufferSize, 0);
@@ -21,6 +22,11 @@ UInt32 DebugFuncEval::GetFuncEvalParameterBufferSize()
return g_FuncEvalParameterBufferSize;
}
+UInt32 DebugFuncEval::GetFuncEvalMode()
+{
+ return g_FuncEvalMode;
+}
+
/// <summary>
/// Retrieve the global FuncEval target address.
/// </summary>
@@ -43,7 +49,7 @@ EXTERN_C REDHAWK_API void* __cdecl RhpGetFuncEvalTargetAddress()
/// During debugging, if a FuncEval is requested,
/// the func eval infrastructure needs to know how much buffer to allocate for the debugger to
/// write the parameter information in. The C# supporting code will call this API to obtain the
-/// buffer size. By that time, the value should have been set through the UpdateFuncEvalParameterSize()
+/// buffer size. By that time, the value should have been set through the UpdateFuncEvalParameterBufferSize()
/// method on the ISosRedhawk7 interface.
/// </remarks>
EXTERN_C REDHAWK_API UInt32 __cdecl RhpGetFuncEvalParameterBufferSize()
@@ -51,4 +57,18 @@ EXTERN_C REDHAWK_API UInt32 __cdecl RhpGetFuncEvalParameterBufferSize()
return DebugFuncEval::GetFuncEvalParameterBufferSize();
}
+/// <summary>
+/// Retrieve the global FuncEval mode.
+/// </summary>
+/// <remarks>
+/// During debugging, if a FuncEval is requested,
+/// the func eval infrastructure needs to know what mode to execute the FuncEval request
+/// The C# supporting code will call this API to obtain the mode. By that time, the value
+/// should have been set through the UpdateFuncEvalMode() method on the ISosRedhawk7 interface.
+/// </remarks>
+EXTERN_C REDHAWK_API UInt32 __cdecl RhpGetFuncEvalMode()
+{
+ return DebugFuncEval::GetFuncEvalMode();
+}
+
#endif //!DACCESS_COMPILE