Browse Source

fixed unit tests

pull/18/head
Siegfried Pammer 14 years ago
parent
commit
db9e807f0f
  1. 2
      src/AddIns/Debugger/Debugger.Core/Process.cs
  2. 1
      src/AddIns/Debugger/Debugger.Core/Thread.cs

2
src/AddIns/Debugger/Debugger.Core/Process.cs

@ -345,9 +345,9 @@ namespace Debugger @@ -345,9 +345,9 @@ namespace Debugger
// if CurrentException is set an exception has occurred.
if (SelectedThread.CurrentException != null) {
ExceptionEventArgs args = new ExceptionEventArgs(this, this.SelectedThread.CurrentException, this.SelectedThread.CurrentExceptionType, this.SelectedThread.CurrentExceptionIsUnhandled);
OnExceptionThrown(args);
// clear exception, it is being processed by the debugger.
this.SelectedThread.CurrentException = null;
OnExceptionThrown(args);
// The event could have resumed or killed the process
if (this.IsRunning || this.TerminateCommandIssued || this.HasExited) return;
}

1
src/AddIns/Debugger/Debugger.Core/Thread.cs

@ -206,7 +206,6 @@ namespace Debugger @@ -206,7 +206,6 @@ namespace Debugger
{
if (!(this.CorThread is ICorDebugThread2)) return false; // Is the debuggee .NET 2.0?
if (this.CorThread.GetCurrentException() == null) return false; // Is there any exception
if (this.currentException == null) return false;
if (this.MostRecentStackFrame == null) return false; // Is frame available? It is not at StackOverflow
// Intercepting an exception on an optimized/NGENed frame seems to sometimes

Loading…
Cancel
Save