forked from qt-creator/qt-creator
don't attempt to sync breakpoints at inopportune times
e.g., when the engine is not ready
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user