Debugger: Continue DebuggerStartParameter cleanup

- Move sysRoot, debuggerCommand, targetAbi to DebuggerRunParameters,
  they are always the one coming from the kit.
- Move projectSource{Directory,Files} to DebuggerRunParameters,
  they are alway coming from the runConfiguration's project
- Pass RunConfiguration always as separate parameter, that's
  what related code does.

Change-Id: I9965a052237af53fa2d170701bc88b552cab12ed
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
hjk
2015-06-26 13:06:08 +02:00
parent f84169b51e
commit 1538dca81a
16 changed files with 90 additions and 225 deletions

View File

@@ -72,78 +72,49 @@ public:
class DEBUGGER_EXPORT DebuggerStartParameters
{
public:
DebuggerStartParameters()
: masterEngineType(NoEngineType),
cppEngineType(NoEngineType),
runConfiguration(0),
attachPID(-1),
useTerminal(false),
breakOnMain(false),
continueAfterAttach(false),
multiProcess(false),
languages(AnyLanguage),
qmlServerAddress(QLatin1String("127.0.0.1")),
qmlServerPort(Constants::QML_DEFAULT_DEBUG_SERVER_PORT),
remoteSetupNeeded(false),
useContinueInsteadOfRun(false),
startMode(NoStartMode),
closeMode(KillAtClose),
useCtrlCStub(false),
skipExecutableValidation(false)
{}
DebuggerStartParameters() {}
DebuggerEngineType masterEngineType;
DebuggerEngineType cppEngineType;
QString sysRoot;
QString deviceSymbolsRoot;
QString debuggerCommand;
ProjectExplorer::Abi toolChainAbi;
QPointer<ProjectExplorer::RunConfiguration> runConfiguration;
DebuggerStartMode startMode = NoStartMode;
DebuggerCloseMode closeMode = KillAtClose;
QString platform;
QString executable;
QString displayName; // Used in the Snapshots view.
QString processArgs;
Utils::Environment environment;
QString workingDirectory;
qint64 attachPID;
bool useTerminal;
bool breakOnMain;
bool continueAfterAttach;
bool multiProcess;
DebuggerLanguages languages;
qint64 attachPID = InvalidPid;
QStringList solibSearchPath;
bool useTerminal = false;
// Used by Qml debugging.
QString qmlServerAddress;
quint16 qmlServerPort;
QString projectSourceDirectory;
QStringList additionalSearchDirectories;
QString projectBuildDirectory;
QStringList projectSourceFiles;
// Used by remote debugging.
// Used by general remote debugging.
QString remoteChannel;
QSsh::SshConnectionParameters connParams;
bool remoteSetupNeeded;
bool remoteSetupNeeded = false;
// Used by baremetal plugin
QByteArray commandsForReset; // commands used for resetting the inferior
bool useContinueInsteadOfRun; // if connected to a hw debugger run is not possible but continue is used
bool useContinueInsteadOfRun = false; // if connected to a hw debugger run is not possible but continue is used
QByteArray commandsAfterConnect; // additional commands to post after connection to debug target
// Used by Valgrind
QVector<QByteArray> expectedSignals;
QStringList solibSearchPath;
DebuggerStartMode startMode;
DebuggerCloseMode closeMode;
// For QNX debugging
QString remoteExecutable;
bool useCtrlCStub;
bool useCtrlCStub = false;
// Used by Android to avoid false positives on warnOnRelease
bool skipExecutableValidation;
bool skipExecutableValidation = false;
QStringList additionalSearchDirectories;
// Used by iOS.
QString platform;
QString deviceSymbolsRoot;
bool continueAfterAttach = false;
};
} // namespace Debugger