forked from qt-creator/qt-creator
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user