return m_ui->toolchainComboBox->debuggerCommand();
}
-QString AttachCoreDialog::sysRoot() const
-
+QString AttachCoreDialog::sysroot() const
{
return m_ui->sysrootPathChooser->path();
}
-void AttachCoreDialog::setSysRoot(const QString &sysroot)
+void AttachCoreDialog::setSysroot(const QString &sysroot)
{
m_ui->sysrootPathChooser->setPath(sysroot);
}
return m_ui->useServerStartScriptCheckBox->isChecked();
}
-void StartRemoteDialog::setSysRoot(const QString &sysroot)
+void StartRemoteDialog::setSysroot(const QString &sysroot)
{
m_ui->sysrootPathChooser->setPath(sysroot);
}
-QString StartRemoteDialog::sysRoot() const
+QString StartRemoteDialog::sysroot() const
{
return m_ui->sysrootPathChooser->path();
}
ProjectExplorer::Abi abi() const;
QString debuggerCommand();
- QString sysRoot() const;
- void setSysRoot(const QString &sysRoot);
+ QString sysroot() const;
+ void setSysroot(const QString &sysroot);
QString overrideStartScript() const;
void setOverrideStartScript(const QString &scriptName);
QString serverStartScript() const;
void setServerStartScript(const QString &scriptName);
- QString sysRoot() const;
- void setSysRoot(const QString &sysRoot);
+ QString sysroot() const;
+ void setSysroot(const QString &sysroot);
QString debugger() const;
void setDebugger(const QString &debugger);
QLineEdit *m_lineEdit;
};
-class AddressDialog : public QDialog {
+class AddressDialog : public QDialog
+{
Q_OBJECT
public:
explicit AddressDialog(QWidget *parent = 0);
void attachCore();
void attachCore(const QString &core, const QString &exeFileName,
const ProjectExplorer::Abi &abi = ProjectExplorer::Abi(),
- const QString &sysRoot = QString(),
+ const QString &sysroot = QString(),
const QString &overrideStartScript = QString(),
const QString &debuggerCommand = QString());
void attachRemote(const QString &spec);
dlg.setExecutableFile(configValue(_("LastExternalExecutableFile")).toString());
dlg.setCoreFile(configValue(_("LastExternalCoreFile")).toString());
dlg.setAbiIndex(configValue(_("LastExternalCoreAbiIndex")).toInt());
- dlg.setSysRoot(configValue(_("LastSysroot")).toString());
+ dlg.setSysroot(configValue(_("LastSysroot")).toString());
dlg.setOverrideStartScript(configValue(_("LastExternalStartScript")).toString());
if (dlg.exec() != QDialog::Accepted)
setConfigValue(_("LastExternalExecutableFile"), dlg.executableFile());
setConfigValue(_("LastExternalCoreFile"), dlg.coreFile());
setConfigValue(_("LastExternalCoreAbiIndex"), QVariant(dlg.abiIndex()));
- setConfigValue(_("LastSysroot"), dlg.sysRoot());
+ setConfigValue(_("LastSysroot"), dlg.sysroot());
setConfigValue(_("LastExternalStartScript"), dlg.overrideStartScript());
attachCore(dlg.coreFile(), dlg.executableFile(), dlg.abi(),
- dlg.sysRoot(), dlg.overrideStartScript());
+ dlg.sysroot(), dlg.overrideStartScript());
}
void DebuggerPluginPrivate::attachCore(const QString &core,
const QString &exe,
const ProjectExplorer::Abi &abi,
- const QString &sysRoot,
+ const QString &sysroot,
const QString &overrideStartScript,
const QString &debuggerCommand)
{
sp.startMode = AttachCore;
sp.debuggerCommand = debuggerCommand;
sp.toolChainAbi = abi.isValid() ? abi : abiOfBinary(sp.coreFile);
- sp.sysRoot = sysRoot;
+ sp.sysroot = sysroot;
sp.overrideStartScript = overrideStartScript;
if (DebuggerRunControl *rc = createDebugger(sp))
startDebugger(rc);
configValue(_("LastServerStartScript")).toString());
dlg.setUseServerStartScript(
configValue(_("LastUseServerStartScript")).toBool());
- dlg.setSysRoot(configValue(_("LastSysroot")).toString());
+ dlg.setSysroot(configValue(_("LastSysroot")).toString());
if (dlg.exec() != QDialog::Accepted)
return;
setConfigValue(_("LastRemoteChannel"), dlg.remoteChannel());
setConfigValue(_("LastRemoteStartScript"), dlg.overrideStartScript());
setConfigValue(_("LastServerStartScript"), dlg.serverStartScript());
setConfigValue(_("LastUseServerStartScript"), dlg.useServerStartScript());
- setConfigValue(_("LastSysroot"), dlg.sysRoot());
+ setConfigValue(_("LastSysroot"), dlg.sysroot());
sp.remoteChannel = dlg.remoteChannel();
sp.remoteArchitecture = dlg.remoteArchitecture();
sp.gnuTarget = dlg.gnuTarget();
sp.overrideStartScript = dlg.overrideStartScript();
sp.useServerStartScript = dlg.useServerStartScript();
sp.serverStartScript = dlg.serverStartScript();
- sp.sysRoot = dlg.sysRoot();
+ sp.sysroot = dlg.sysroot();
if (RunControl *rc = createDebugger(sp))
startDebugger(rc);
}
}
if (!sp.gnuTarget.isEmpty())
str << "Gnu target: " << sp.gnuTarget << '\n';
- if (!sp.sysRoot.isEmpty())
- str << "Sysroot: " << sp.sysRoot << '\n';
+ if (!sp.sysroot.isEmpty())
+ str << "Sysroot: " << sp.sysroot << '\n';
if (!sp.symbolFileName.isEmpty())
str << "Symbol file: " << sp.symbolFileName << '\n';
if (sp.useServerStartScript)
QString symbolFileName;
bool useServerStartScript;
QString serverStartScript;
- QString sysRoot;
+ QString sysroot;
QByteArray remoteDumperLib;
QByteArray remoteSourcesDir;
QString remoteMountPoint;
QTC_ASSERT(state() == InferiorSetupRequested, qDebug() << state());
// Do that first, otherwise no symbols are loaded.
QFileInfo fi(m_executable);
- const QByteArray sysRoot = startParameters().sysRoot.toLocal8Bit();
+ const QByteArray sysroot = startParameters().sysroot.toLocal8Bit();
QByteArray path = fi.absoluteFilePath().toLocal8Bit();
- if (!sysRoot.isEmpty())
- m_engine->postCommand("set sysroot " + sysRoot);
+ if (!sysroot.isEmpty())
+ m_engine->postCommand("set sysroot " + sysroot);
m_engine->postCommand("-file-exec-and-symbols \"" + path + '"',
CB(handleFileExecAndSymbols));
}
QFileInfo fi(startParameters().executable);
fileName = fi.absoluteFilePath();
}
- const QByteArray sysRoot = startParameters().sysRoot.toLocal8Bit();
+ const QByteArray sysroot = startParameters().sysroot.toLocal8Bit();
const QByteArray remoteArch = startParameters().remoteArchitecture.toLatin1();
const QByteArray gnuTarget = startParameters().gnuTarget.toLatin1();
const QByteArray solibPath =
m_engine->postCommand("set architecture " + remoteArch);
if (!gnuTarget.isEmpty())
m_engine->postCommand("set gnutarget " + gnuTarget);
- if (!sysRoot.isEmpty())
- m_engine->postCommand("set sysroot " + sysRoot);
+ if (!sysroot.isEmpty())
+ m_engine->postCommand("set sysroot " + sysroot);
if (!solibPath.isEmpty())
m_engine->postCommand("set solib-search-path " + solibPath);
if (!args.isEmpty())
if (debuggingType != MaemoRunConfiguration::DebugQmlOnly) {
params.processArgs = runConfig->arguments();
if (runConfig->activeQt4BuildConfiguration()->qtVersion())
- params.sysRoot = runConfig->activeQt4BuildConfiguration()->qtVersion()->systemRoot();
+ params.sysroot = runConfig->activeQt4BuildConfiguration()->qtVersion()->systemRoot();
params.toolChainAbi = runConfig->abi();
if (runConfig->useRemoteGdb()) {
params.startMode = StartRemoteGdb;
}
emit addOutput(tr("Copying files to sysroot ..."), MessageOutput);
- QDir sysRootDir(tc->sysroot());
+ QDir sysrootDir(tc->sysroot());
const QSharedPointer<MaemoDeployables> deployables
= qobject_cast<Qt4MaemoDeployConfiguration *>(deployConfiguration())->deployables();
const QChar sep = QLatin1Char('/');
const QFileInfo localFileInfo(deployable.localFilePath);
const QString targetFilePath = tc->sysroot() + sep
+ deployable.remoteDir + sep + localFileInfo.fileName();
- sysRootDir.mkpath(deployable.remoteDir.mid(1));
+ sysrootDir.mkpath(deployable.remoteDir.mid(1));
QString errorMsg;
MaemoGlobal::removeRecursively(targetFilePath, errorMsg);
if (!MaemoGlobal::copyRecursively(deployable.localFilePath,