forked from qt-creator/qt-creator
Boot2Qt: Feed remote-qualified executable into ExecutableAspect
Change-Id: I8a6d21147ef0df7a1e56fc2c125f687f05fef923 Reviewed-by: Ari Parkkila <ari.parkkila@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -121,10 +121,11 @@ public:
|
||||
: SimpleTargetRunner(runControl)
|
||||
{
|
||||
setStartModifier([this] {
|
||||
CommandLine plain = commandLine();
|
||||
CommandLine cmd;
|
||||
cmd.setExecutable(plain.executable().withNewPath(Constants::AppcontrollerFilepath));
|
||||
cmd.addCommandLineAsArgs(plain);
|
||||
const CommandLine remoteCommand = commandLine();
|
||||
const FilePath remoteExe = remoteCommand.executable();
|
||||
CommandLine cmd{remoteExe.withNewPath(Constants::AppcontrollerFilepath)};
|
||||
cmd.addArg(remoteExe.nativePath());
|
||||
cmd.addArgs(remoteCommand.arguments(), CommandLine::Raw);
|
||||
setCommandLine(cmd);
|
||||
});
|
||||
}
|
||||
|
@@ -8,6 +8,8 @@
|
||||
#include <projectexplorer/buildsystem.h>
|
||||
#include <projectexplorer/buildtargetinfo.h>
|
||||
#include <projectexplorer/deploymentdata.h>
|
||||
#include <projectexplorer/devicesupport/idevice.h>
|
||||
#include <projectexplorer/kitinformation.h>
|
||||
#include <projectexplorer/project.h>
|
||||
#include <projectexplorer/runconfigurationaspects.h>
|
||||
#include <projectexplorer/target.h>
|
||||
@@ -15,6 +17,7 @@
|
||||
#include <remotelinux/remotelinuxenvironmentaspect.h>
|
||||
|
||||
#include <utils/commandline.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
using namespace Utils;
|
||||
@@ -90,8 +93,9 @@ QdbRunConfiguration::QdbRunConfiguration(Target *target, Id id)
|
||||
const BuildTargetInfo bti = buildTargetInfo();
|
||||
const FilePath localExecutable = bti.targetFilePath;
|
||||
const DeployableFile depFile = target->deploymentData().deployableForLocalFile(localExecutable);
|
||||
|
||||
exeAspect->setExecutable(FilePath::fromString(depFile.remoteFilePath()));
|
||||
IDevice::ConstPtr dev = DeviceKitAspect::device(target->kit());
|
||||
QTC_ASSERT(dev, return);
|
||||
exeAspect->setExecutable(dev->filePath(depFile.remoteFilePath()));
|
||||
symbolsAspect->setFilePath(localExecutable);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user