don't attempt to sync breakpoints at inopportune times

e.g., when the engine is not ready
This commit is contained in:
Oswald Buddenhagen
2009-10-21 16:49:39 +02:00
parent 20edb02093
commit 94226ceb5e

View File

@@ -2035,6 +2035,18 @@ void GdbEngine::handleBreakInsert1(const GdbResponse &response)
void GdbEngine::attemptBreakpointSynchronization()
{
switch (state()) {
case InferiorStarting:
case InferiorRunningRequested:
case InferiorRunning:
case InferiorStopping:
case InferiorStopped:
break;
default:
//qDebug() << "attempted breakpoint sync in state" << state();
return;
}
BreakHandler *handler = manager()->breakHandler();
foreach (BreakpointData *data, handler->takeDisabledBreakpoints()) {