Commit d48136f3 authored by Kai Koehne's avatar Kai Koehne Committed by hjk

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: default avatarhjk <qthjk@ovi.com>
parent 5f6ad79a
......@@ -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.
......
Markdown is supported
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