forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user