forked from qt-creator/qt-creator
debugger: remove unused member and code cosmetics
This commit is contained in:
@@ -183,7 +183,7 @@ DEBUGGER_EXPORT QDebug operator<<(QDebug str, const DebuggerStartParameters &p)
|
|||||||
nospace << "executable=" << p.executable << " coreFile=" << p.coreFile
|
nospace << "executable=" << p.executable << " coreFile=" << p.coreFile
|
||||||
<< " processArgs=" << p.processArgs.join(sep)
|
<< " processArgs=" << p.processArgs.join(sep)
|
||||||
<< " environment=<" << p.environment.size() << " variables>"
|
<< " environment=<" << p.environment.size() << " variables>"
|
||||||
<< " workingDir=" << p.workingDirectory << " buildDir=" << p.buildDirectory
|
<< " workingDir=" << p.workingDirectory
|
||||||
<< " attachPID=" << p.attachPID << " useTerminal=" << p.useTerminal
|
<< " attachPID=" << p.attachPID << " useTerminal=" << p.useTerminal
|
||||||
<< " remoteChannel=" << p.remoteChannel
|
<< " remoteChannel=" << p.remoteChannel
|
||||||
<< " remoteArchitecture=" << p.remoteArchitecture
|
<< " remoteArchitecture=" << p.remoteArchitecture
|
||||||
|
@@ -113,7 +113,6 @@ public:
|
|||||||
QStringList processArgs;
|
QStringList processArgs;
|
||||||
QStringList environment;
|
QStringList environment;
|
||||||
QString workingDirectory;
|
QString workingDirectory;
|
||||||
QString buildDirectory;
|
|
||||||
qint64 attachPID;
|
qint64 attachPID;
|
||||||
bool useTerminal;
|
bool useTerminal;
|
||||||
QString crashParameter; // for AttachCrashedExternal
|
QString crashParameter; // for AttachCrashedExternal
|
||||||
|
@@ -45,14 +45,11 @@
|
|||||||
|
|
||||||
#include <QtGui/QTextDocument>
|
#include <QtGui/QTextDocument>
|
||||||
|
|
||||||
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace Debugger {
|
namespace Debugger {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
using ProjectExplorer::BuildConfiguration;
|
|
||||||
using ProjectExplorer::RunConfiguration;
|
|
||||||
using ProjectExplorer::RunControl;
|
|
||||||
using ProjectExplorer::LocalApplicationRunConfiguration;
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// DebuggerRunControlFactory
|
// DebuggerRunControlFactory
|
||||||
@@ -89,26 +86,13 @@ static DebuggerStartParametersPtr localStartParameters(RunConfiguration *runConf
|
|||||||
sp->environment = rc->environment().toStringList();
|
sp->environment = rc->environment().toStringList();
|
||||||
sp->workingDirectory = rc->workingDirectory();
|
sp->workingDirectory = rc->workingDirectory();
|
||||||
sp->processArgs = rc->commandLineArguments();
|
sp->processArgs = rc->commandLineArguments();
|
||||||
|
|
||||||
switch (sp->toolChainType) {
|
|
||||||
case ProjectExplorer::ToolChain::UNKNOWN:
|
|
||||||
case ProjectExplorer::ToolChain::INVALID:
|
|
||||||
sp->toolChainType = rc->toolChainType();
|
sp->toolChainType = rc->toolChainType();
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (rc->target()->project()) {
|
|
||||||
BuildConfiguration *bc = rc->target()->activeBuildConfiguration();
|
|
||||||
if (bc)
|
|
||||||
sp->buildDirectory = bc->buildDirectory();
|
|
||||||
}
|
|
||||||
sp->useTerminal = rc->runMode() == LocalApplicationRunConfiguration::Console;
|
sp->useTerminal = rc->runMode() == LocalApplicationRunConfiguration::Console;
|
||||||
sp->dumperLibrary = rc->dumperLibrary();
|
sp->dumperLibrary = rc->dumperLibrary();
|
||||||
sp->dumperLibraryLocations = rc->dumperLibraryLocations();
|
sp->dumperLibraryLocations = rc->dumperLibraryLocations();
|
||||||
|
|
||||||
QString qmakePath = ProjectExplorer::DebuggingHelperLibrary::findSystemQt(
|
// Find qtInstallPath.
|
||||||
rc->environment());
|
QString qmakePath = DebuggingHelperLibrary::findSystemQt(rc->environment());
|
||||||
if (!qmakePath.isEmpty()) {
|
if (!qmakePath.isEmpty()) {
|
||||||
QProcess proc;
|
QProcess proc;
|
||||||
QStringList args;
|
QStringList args;
|
||||||
@@ -153,7 +137,7 @@ QWidget *DebuggerRunControlFactory::createConfigurationWidget(RunConfiguration *
|
|||||||
|
|
||||||
DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager,
|
DebuggerRunControl::DebuggerRunControl(DebuggerManager *manager,
|
||||||
const DebuggerStartParametersPtr &startParameters,
|
const DebuggerStartParametersPtr &startParameters,
|
||||||
ProjectExplorer::RunConfiguration *runConfiguration)
|
RunConfiguration *runConfiguration)
|
||||||
: RunControl(runConfiguration, ProjectExplorer::Constants::DEBUGMODE),
|
: RunControl(runConfiguration, ProjectExplorer::Constants::DEBUGMODE),
|
||||||
m_startParameters(startParameters),
|
m_startParameters(startParameters),
|
||||||
m_manager(manager),
|
m_manager(manager),
|
||||||
|
Reference in New Issue
Block a user