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