Skip to content

Commit c94dd1f

Browse files
ArseniiCherniaevnerzhulart
authored andcommitted
fixed handle-all problem
(cherry picked from commit 32f7685)
1 parent 31655ae commit c94dd1f

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

Mono.Debugging.Win32/CorDebuggerSession.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ void SetupProcess (CorProcess corProcess)
271271
corProcess.OnEvalException += OnEvalException;
272272
corProcess.OnLogMessage += OnLogMessage;
273273
corProcess.OnException2 += OnException2;
274-
corProcess.OnException += OnException;
275274
corProcess.RegisterStdOutput (OnStdOutput);
276275
}
277276

@@ -823,32 +822,6 @@ void OnException2 (object sender, CorException2EventArgs e)
823822
}
824823
}
825824

826-
private void OnException (object sender, CorExceptionEventArgs e)
827-
{
828-
lock (debugLock) {
829-
if (evaluating) {
830-
e.Continue = true;
831-
return;
832-
}
833-
}
834-
835-
TargetEventArgs args = new TargetEventArgs (
836-
e.Unhandled? TargetEventType.UnhandledException: TargetEventType.ExceptionThrown);
837-
838-
OnStopped ();
839-
e.Continue = false;
840-
// If an exception is thrown while stepping, cancel the stepping operation
841-
if (stepper != null && stepper.IsActive ())
842-
stepper.Deactivate ();
843-
autoStepInto = false;
844-
SetActiveThread (e.Thread);
845-
846-
args.Process = GetProcess (process);
847-
args.Thread = GetThread (e.Thread);
848-
args.Backtrace = new Backtrace (new CorBacktrace (e.Thread, this));
849-
OnTargetEvent (args);
850-
}
851-
852825
public bool IsExternalCode (string fileName)
853826
{
854827
if (string.IsNullOrWhiteSpace (fileName))

0 commit comments

Comments
 (0)