forked from qt-creator/qt-creator
Device support: Introduce IDevice helper classes.
These are for configuration of process and ports gathering activities, respectively. This couples related functionality more tightly, while keeping the number of IDevice methods at a reasonable level. For ports gathering, the patch also adds the ability to configure both the command and the parsing function; the latter used to be hardcoded in the PortsGatherer class. Change-Id: I1b8940397a51efa7ddc05dd15cf861777d118c1a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
#include "qnxdebugsupport.h"
|
||||
#include "qnxconstants.h"
|
||||
#include "qnxrunconfiguration.h"
|
||||
#include "qnxutils.h"
|
||||
|
||||
#include <debugger/debuggerengine.h>
|
||||
#include <projectexplorer/devicesupport/deviceapplicationrunner.h>
|
||||
@@ -62,7 +61,6 @@ QnxDebugSupport::QnxDebugSupport(QnxRunConfiguration *runConfig, Debugger::Debug
|
||||
{
|
||||
m_runner = new DeviceApplicationRunner(this);
|
||||
m_portsGatherer = new DeviceUsedPortsGatherer(this);
|
||||
m_portsGatherer->setCommand(QLatin1String(Constants::QNX_PORT_GATHERER_COMMAND));
|
||||
|
||||
connect(m_portsGatherer, SIGNAL(error(QString)), SLOT(handleError(QString)));
|
||||
connect(m_portsGatherer, SIGNAL(portListReady()), SLOT(handlePortListReady()));
|
||||
@@ -135,7 +133,7 @@ void QnxDebugSupport::handleDebuggingFinished()
|
||||
void QnxDebugSupport::setFinished()
|
||||
{
|
||||
m_state = Inactive;
|
||||
m_runner->stop(QnxUtils::applicationKillCommand(m_executable).toUtf8());
|
||||
m_runner->stop(m_device->processSupport()->killProcessByNameCommandLine(m_executable).toUtf8());
|
||||
}
|
||||
|
||||
void QnxDebugSupport::handleProgressReport(const QString &progressOutput)
|
||||
|
||||
Reference in New Issue
Block a user