aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-10-21 09:24:51 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-10-23 06:07:50 +0000
commitf68588a58581a3169375b998ec6cf57509388986 (patch)
treefa82e656c362aeba2f12acc251993a374710a3b8 /src/plugins/remotelinux/remotelinuxdebugsupport.cpp
parent1b655f76ad61cc17483d00b8ece06e08afaeaf01 (diff)
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>
Diffstat (limited to 'src/plugins/remotelinux/remotelinuxdebugsupport.cpp')
-rw-r--r--src/plugins/remotelinux/remotelinuxdebugsupport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
index 5143efe7d9..a9a3eca3a1 100644
--- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
+++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
@@ -42,6 +42,7 @@ LinuxDeviceDebugSupport::LinuxDeviceDebugSupport(RunControl *runControl)
addQmlServerInferiorCommandLineArgumentIfNeeded();
auto gdbServer = new GdbServerRunner(runControl, portsGatherer());
+ gdbServer->setEssential(true);
addStartDependency(gdbServer);