forked from qt-creator/qt-creator
Fix QnxDebugSupport::startExecution()
Under the assumption that the QNX debug support should work similar to the RemoteLinux debug support we have to: a, use the Runnable provided with the run control b, not recycle the arguments from the run control start parameters c, prepend a new set of QML debugger arguments when QML debugging There seems to be some mechanism that allows us to do C++ debugging by simply starting a process "pdebug <n>" for some port number <n> on the target. We don't touch this here. Task-number: QTCREATORBUG-17208 Change-Id: I0f4541968e1d20940617e8ff6d16a8ad86ea22c9 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
@@ -99,17 +99,18 @@ void QnxDebugSupport::startExecution()
|
|||||||
|
|
||||||
setState(StartingRemoteProcess);
|
setState(StartingRemoteProcess);
|
||||||
|
|
||||||
if (m_useQmlDebugger)
|
StandardRunnable r = m_runnable;
|
||||||
m_runControl->startParameters().inferior.commandLineArguments +=
|
|
||||||
QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlDebuggerServices, m_qmlPort);
|
|
||||||
|
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
if (m_useCppDebugger)
|
if (m_useCppDebugger)
|
||||||
arguments << QString::number(m_pdebugPort.number());
|
arguments << QString::number(m_pdebugPort.number());
|
||||||
else if (m_useQmlDebugger && !m_useCppDebugger)
|
else {
|
||||||
arguments = Utils::QtcProcess::splitArgs(
|
if (m_useQmlDebugger) {
|
||||||
m_runControl->startParameters().inferior.commandLineArguments);
|
arguments.append(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlDebuggerServices,
|
||||||
StandardRunnable r;
|
m_qmlPort));
|
||||||
|
}
|
||||||
|
arguments.append(Utils::QtcProcess::splitArgs(r.commandLineArguments));
|
||||||
|
}
|
||||||
|
|
||||||
r.executable = processExecutable();
|
r.executable = processExecutable();
|
||||||
r.commandLineArguments = Utils::QtcProcess::joinArgs(arguments);
|
r.commandLineArguments = Utils::QtcProcess::joinArgs(arguments);
|
||||||
r.environment = m_runnable.environment;
|
r.environment = m_runnable.environment;
|
||||||
|
Reference in New Issue
Block a user