Gdb: Notice when the gdb server process is exited

When terminating from within Qt Creator, we sometimes get a 'Quit'
message instead of 'Remote connection closed'.

Change-Id: I821d436813f1feacfe94ce85bc2175e3646dba27
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Kai Koehne
2012-03-06 09:28:18 +01:00
committed by hjk
parent 8cb78687bb
commit aa114a2358

View File

@@ -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 {