Commit 94226ceb authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't attempt to sync breakpoints at inopportune times

e.g., when the engine is not ready
parent 20edb020
...@@ -2035,6 +2035,18 @@ void GdbEngine::handleBreakInsert1(const GdbResponse &response) ...@@ -2035,6 +2035,18 @@ void GdbEngine::handleBreakInsert1(const GdbResponse &response)
void GdbEngine::attemptBreakpointSynchronization() void GdbEngine::attemptBreakpointSynchronization()
{ {
switch (state()) {
case InferiorStarting:
case InferiorRunningRequested:
case InferiorRunning:
case InferiorStopping:
case InferiorStopped:
//qDebug() << "attempted breakpoint sync in state" << state();
BreakHandler *handler = manager()->breakHandler(); BreakHandler *handler = manager()->breakHandler();
foreach (BreakpointData *data, handler->takeDisabledBreakpoints()) { foreach (BreakpointData *data, handler->takeDisabledBreakpoints()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment