diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index a20edc8a0e1..e6268d99c73 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -1023,7 +1023,8 @@ void GdbEngine::handleResultRecord(GdbResponse *response) QTC_CHECK(state() == InferiorRunOk); notifyInferiorSpontaneousStop(); notifyEngineIll(); - } else if (msg.startsWith("Remote connection closed")) { + } else if (msg.startsWith("Remote connection closed") + || msg.startsWith("Quit")) { // Can happen when the target exits (gdbserver) notifyInferiorExited(); } else {