RemoteLinux: Correct clean shutdown when debugging

If the inferior stops by itself and the debugger
tries to shutdown it had ended up waiting forever for
the additional workers (e.g. ports gatherer, channel
provider,...) to stop.
The debugger appeared as finished but the runworker was
still in a running state until the user would hit the stop
button of the application output pane.
Make the gdbserver essential to initiate a clean finish.

Change-Id: I16b2ebe5feadc88bb76ce34b49ac5d3456d0867c
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2019-10-21 09:24:51 +02:00
parent 1b655f76ad
commit f68588a585

View File

@@ -42,6 +42,7 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
addQmlServerInferiorCommandLineArgumentIfNeeded(); addQmlServerInferiorCommandLineArgumentIfNeeded();
auto gdbServer = new GdbServerRunner(runControl, portsGatherer()); auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
gdbServer->setEssential(true);
addStartDependency(gdbServer); addStartDependency(gdbServer);