|
|
|
@ -490,14 +490,13 @@ namespace Debugger
@@ -490,14 +490,13 @@ namespace Debugger
|
|
|
|
|
// Watch out for the zeros and null!
|
|
|
|
|
// Exception -> Exception2(pAppDomain, pThread, null, 0, exceptionType, 0);
|
|
|
|
|
|
|
|
|
|
process.SelectedThread.CurrentException = new Exception(new Value(process.AppDomains[pAppDomain], process.SelectedThread.CorThread.GetCurrentException())); |
|
|
|
|
process.SelectedThread.CurrentException_DebuggeeState = process.DebuggeeState; |
|
|
|
|
process.SelectedThread.CurrentExceptionType = (ExceptionType)exceptionType; |
|
|
|
|
process.SelectedThread.CurrentExceptionIsUnhandled = (ExceptionType)exceptionType == ExceptionType.Unhandled; |
|
|
|
|
|
|
|
|
|
if (process.SelectedThread.CurrentExceptionIsUnhandled || |
|
|
|
|
process.PauseOnHandledException) |
|
|
|
|
{ |
|
|
|
|
if (process.SelectedThread.CurrentExceptionIsUnhandled || process.PauseOnHandledException) { |
|
|
|
|
process.SelectedThread.CurrentException = new Exception(new Value(process.AppDomains[pAppDomain], process.SelectedThread.CorThread.GetCurrentException())); |
|
|
|
|
process.SelectedThread.CurrentException.MakeValuePermanent(); |
|
|
|
|
process.SelectedThread.CurrentException_DebuggeeState = process.DebuggeeState; |
|
|
|
|
process.SelectedThread.CurrentExceptionType = (ExceptionType)exceptionType; |
|
|
|
|
process.SelectedThread.CurrentExceptionIsUnhandled = (ExceptionType)exceptionType == ExceptionType.Unhandled; |
|
|
|
|
|
|
|
|
|
pauseOnNextExit = true; |
|
|
|
|
} |
|
|
|
|
ExitCallback(); |
|
|
|
|