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

github.com/mono/debugger-libs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Debugging.Soft/SoftEvaluationContext.cs')
-rw-r--r--Mono.Debugging.Soft/SoftEvaluationContext.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Mono.Debugging.Soft/SoftEvaluationContext.cs b/Mono.Debugging.Soft/SoftEvaluationContext.cs
index 92e39f2..eb553da 100644
--- a/Mono.Debugging.Soft/SoftEvaluationContext.cs
+++ b/Mono.Debugging.Soft/SoftEvaluationContext.cs
@@ -45,7 +45,12 @@ namespace Mono.Debugging.Soft
{
Frame = frame;
Thread = frame.Thread;
- Domain = Thread.Domain;
+
+ if (frame.VirtualMachine.Version.AtLeast (2, 38)) {
+ Domain = frame.Domain;
+ } else {
+ Domain = frame.Method.DeclaringType.GetTypeObject ().Domain;
+ }
string method = frame.Method.Name;
if (frame.Method.DeclaringType != null)