Qnx: Fix debugging

This apparently fell through the cracks in 89f02cba2.

Task-number: QTCREATORBUG-18804
Change-Id: Ib00a5a074ec1df3292267a194e8e87a92d3c6dfc
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-09-06 17:11:42 +02:00
parent 5680c1c874
commit 015f0c03cf
3 changed files with 8 additions and 11 deletions

View File

@@ -79,6 +79,8 @@ private:
arguments.append(Utils::QtcProcess::splitArgs(r.commandLineArguments));
r.commandLineArguments = Utils::QtcProcess::joinArgs(arguments);
setRunnable(r);
SimpleTargetRunner::start();
}
@@ -102,9 +104,9 @@ QnxDebugSupport::QnxDebugSupport(RunControl *runControl)
debuggeeRunner->addStartDependency(m_portsGatherer);
auto slog2InfoRunner = new Slog2InfoRunner(runControl);
slog2InfoRunner->addStartDependency(debuggeeRunner);
debuggeeRunner->addStartDependency(slog2InfoRunner);
addStartDependency(slog2InfoRunner);
addStartDependency(debuggeeRunner);
}
void QnxDebugSupport::start()
@@ -135,15 +137,9 @@ void QnxDebugSupport::start()
if (qtVersion)
params.solibSearchPath = QnxUtils::searchPaths(qtVersion);
reportStarted();
}
setStartParameters(params);
void QnxDebugSupport::stop()
{
// We have to kill the inferior process, as invoking "kill" in
// gdb doesn't work on QNX gdb.
auto stdRunnable = runnable().as<StandardRunnable>();
device()->signalOperation()->killProcess(stdRunnable.executable);
DebuggerRunTool::start();
}
} // namespace Internal