Add info about debuggee to params in remotelinux.

Extends RemoteLinuxAnalyzeSupport to add information about debuggee,
debuggee arguments, working directory and environment to the
AnalyzerStartParameters.

This is required when starting the project from an analyzer plugin
using remotelinux.

Change-Id: I29cbeb1b22b193a2d815924282887a980c506ca0
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Anton Kreuzkamp
2015-08-18 15:52:57 +02:00
parent 78e8871207
commit 6d77db9e6a

View File

@@ -42,6 +42,7 @@
#include <projectexplorer/kitinformation.h>
#include <utils/qtcassert.h>
#include <utils/qtcprocess.h>
#include <qmldebug/qmloutputparser.h>
#include <QPointer>
@@ -84,6 +85,14 @@ AnalyzerStartParameters RemoteLinuxAnalyzeSupport::startParameters(const RunConf
params.sysroot = SysRootKitInformation::sysRoot(runConfig->target()->kit()).toString();
params.analyzerHost = params.connParams.host;
auto rc = qobject_cast<const AbstractRemoteLinuxRunConfiguration *>(runConfig);
QTC_ASSERT(rc, return params);
params.debuggee = rc->remoteExecutableFilePath();
params.debuggeeArgs = Utils::QtcProcess::Arguments::createUnixArgs(rc->arguments()).toString();
params.workingDirectory = rc->workingDirectory();
params.environment = rc->environment();
return params;
}