This commit is contained in:
kudzu_cp 2011-06-26 23:23:50 +00:00
parent 54abcb5266
commit 795c01d197

View file

@ -350,17 +350,17 @@ namespace Cosmos.Debug.VSDebugEngine {
if (mEngine.AfterBreak) { if (mEngine.AfterBreak) {
mCallback.OnStepComplete(); mCallback.OnStepComplete();
} else { } else {
// Code based break. Tell VS to break.
mCallback.OnBreakpoint(mThread, new ReadOnlyCollection<IDebugBoundBreakpoint2>(xBoundBreakpoints));
// We catch and resend data rather than using a second serial port because // We catch and resend data rather than using a second serial port because
// while this would work fine in a VM, it puts extra requirements on the setup // while this would work fine in a VM, it puts extra requirements on the setup
// when real hardware is used. // when real hardware is used.
mDbgConnector.SendRegisters(); mDbgConnector.SendRegisters();
// Code based break. Tell VS to break.
mCallback.OnBreakpoint(mThread, new ReadOnlyCollection<IDebugBoundBreakpoint2>(xBoundBreakpoints));
} }
} else { } else {
// Found a bound breakpoint // Found a bound breakpoint
mCallback.OnBreakpoint(mThread, new ReadOnlyCollection<IDebugBoundBreakpoint2>(xBoundBreakpoints));
mDbgConnector.SendRegisters(); mDbgConnector.SendRegisters();
mCallback.OnBreakpoint(mThread, new ReadOnlyCollection<IDebugBoundBreakpoint2>(xBoundBreakpoints));
mEngine.AfterBreak = true; mEngine.AfterBreak = true;
} }
break; break;