Browse Source

Use the unresolved member to check that the stack-frame is valid.

newNRvisualizers
David Srbecký 13 years ago
parent
commit
3458e13eb7
  1. 3
      src/AddIns/Debugger/Debugger.Core/StackFrame.cs

3
src/AddIns/Debugger/Debugger.Core/StackFrame.cs

@ -109,7 +109,8 @@ namespace Debugger @@ -109,7 +109,8 @@ namespace Debugger
if (corILFramePauseSession != this.Process.PauseSession) {
// Reobtain the stackframe
StackFrame stackFrame = this.Thread.GetStackFrameAt(this.ChainIndex, this.FrameIndex);
if (stackFrame.MethodInfo != this.MethodInfo) throw new DebuggerException("The stack frame on the thread does not represent the same method anymore");
if (stackFrame.MethodInfo.UnresolvedMember != this.MethodInfo.UnresolvedMember)
throw new DebuggerException("The stack frame on the thread does not represent the same method anymore");
corILFrame = stackFrame.corILFrame;
corILFramePauseSession = stackFrame.corILFramePauseSession;
}

Loading…
Cancel
Save