diff options
Diffstat (limited to 'Mono.Debugging.Soft/SoftDebuggerBacktrace.cs')
-rw-r--r-- | Mono.Debugging.Soft/SoftDebuggerBacktrace.cs | 4 |
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); } |