diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 67bb37d41c25939eae308e71381c0f29ffd38316..d635f30af0faa7f11c2a21122ddc609449ac4aeb 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -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()) {