Commit aa114a23 authored by Kai Koehne's avatar Kai Koehne Committed by hjk
Browse files

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: default avatarhjk <qthjk@ovi.com>
parent 8cb78687
......@@ -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 {
......
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