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/SoftDebuggerBacktrace.cs')
-rw-r--r--Mono.Debugging.Soft/SoftDebuggerBacktrace.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs b/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs
index 583373f..4cdda11 100644
--- a/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs
+++ b/Mono.Debugging.Soft/SoftDebuggerBacktrace.cs
@@ -213,10 +213,12 @@ namespace Mono.Debugging.Soft
protected override EvaluationContext GetEvaluationContext (int frameIndex, EvaluationOptions options)
{
ValidateStack ();
+
if (frameIndex >= frames.Length)
return null;
- MDB.StackFrame frame = frames [frameIndex];
+ var frame = frames[frameIndex];
+
return new SoftEvaluationContext (session, frame, options);
}