Browse Source

Minor update to last revision

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5253 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
8d05f56765
  1. 5
      src/AddIns/Debugger/Debugger.Core/ManagedCallback.cs

5
src/AddIns/Debugger/Debugger.Core/ManagedCallback.cs

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

Loading…
Cancel
Save