Gdb: Notice when remote gdb process shuts down

Make sure notifyInferiorExited is called when we get a
'Remote connection closed' message.

Change-Id: I578d62e29ed30243eb7693e641ad809cccd0fcae
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Kai Koehne
2012-03-05 16:58:19 +01:00
committed by hjk
parent 5f6ad79a14
commit d48136f312

View File

@@ -1023,6 +1023,9 @@ void GdbEngine::handleResultRecord(GdbResponse *response)
QTC_CHECK(state() == InferiorRunOk);
notifyInferiorSpontaneousStop();
notifyEngineIll();
} else if (msg == _("Remote connection closed")) {
// Can happen when the target exits (gdbserver)
notifyInferiorExited();
} else {
// Windows: Some DLL or some function not found. Report
// the exception now in a box.