Browse Source

Fixed SD2-1114: Debugger throws exception when a null event argument is used.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1838 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
5e82cc6daa
  1. 8
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs

8
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs

@ -138,8 +138,16 @@ namespace Debugger
if (!corThread.Is<ICorDebugThread2>()) return false; // Is the debuggee .NET 2.0? if (!corThread.Is<ICorDebugThread2>()) return false; // Is the debuggee .NET 2.0?
if (LastFunction == null) return false; // Is frame available? It is not at StackOverflow if (LastFunction == null) return false; // Is frame available? It is not at StackOverflow
try {
corThread.CastTo<ICorDebugThread2>().InterceptCurrentException(LastFunction.CorILFrame.CastTo<ICorDebugFrame>()); corThread.CastTo<ICorDebugThread2>().InterceptCurrentException(LastFunction.CorILFrame.CastTo<ICorDebugFrame>());
return true; return true;
} catch (COMException e) {
// 0x80131C02: Cannot intercept this exception
if ((uint)e.ErrorCode == 0x80131C02) {
return false;
}
throw;
}
} }
internal Stepper GetStepper(ICorDebugStepper corStepper) internal Stepper GetStepper(ICorDebugStepper corStepper)

Loading…
Cancel
Save