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:
@@ -30,7 +30,6 @@
|
||||
#include "remotelinuxdebugsupport.h"
|
||||
|
||||
#include "remotelinuxrunconfiguration.h"
|
||||
#include "remotelinuxutils.h"
|
||||
|
||||
#include <debugger/debuggerengine.h>
|
||||
#include <debugger/debuggerstartparameters.h>
|
||||
@@ -306,8 +305,11 @@ void LinuxDeviceDebugSupport::setFinished()
|
||||
return;
|
||||
d->portsGatherer.disconnect(this);
|
||||
d->appRunner.disconnect(this);
|
||||
if (d->state == StartingRunner)
|
||||
d->appRunner.stop(RemoteLinuxUtils::killApplicationCommandLine(d->remoteFilePath).toUtf8());
|
||||
if (d->state == StartingRunner) {
|
||||
const QString stopCommand
|
||||
= d->device->processSupport()->killProcessByNameCommandLine(d->remoteFilePath);
|
||||
d->appRunner.stop(stopCommand.toUtf8());
|
||||
}
|
||||
d->state = Inactive;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user