forked from qt-creator/qt-creator
debugger: remove unued gnutarget parameter
Change-Id: Ic1c663bb11f7bf9420b35686ddeb581d31242b7f Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -2724,8 +2724,6 @@ static QString formatStartParameters(DebuggerStartParameters &sp)
|
|||||||
str << "Remote mount point: " << sp.remoteMountPoint
|
str << "Remote mount point: " << sp.remoteMountPoint
|
||||||
<< " Local: " << sp.localMountDir << '\n';
|
<< " Local: " << sp.localMountDir << '\n';
|
||||||
}
|
}
|
||||||
if (!sp.gnuTarget.isEmpty())
|
|
||||||
str << "Gnu target: " << sp.gnuTarget << '\n';
|
|
||||||
str << "Sysroot: " << sp.sysRoot << '\n';
|
str << "Sysroot: " << sp.sysRoot << '\n';
|
||||||
str << "Debug Source Location: " << sp.debugSourceLocation.join(QLatin1String(":")) << '\n';
|
str << "Debug Source Location: " << sp.debugSourceLocation.join(QLatin1String(":")) << '\n';
|
||||||
str << "Symbol file: " << sp.symbolFileName << '\n';
|
str << "Symbol file: " << sp.symbolFileName << '\n';
|
||||||
|
@@ -111,7 +111,6 @@ public:
|
|||||||
QString qtInstallPath;
|
QString qtInstallPath;
|
||||||
// Used by remote debugging.
|
// Used by remote debugging.
|
||||||
QString remoteChannel;
|
QString remoteChannel;
|
||||||
QString gnuTarget;
|
|
||||||
QString symbolFileName;
|
QString symbolFileName;
|
||||||
bool useServerStartScript;
|
bool useServerStartScript;
|
||||||
QString serverStartScript;
|
QString serverStartScript;
|
||||||
|
@@ -181,13 +181,10 @@ void GdbRemoteServerEngine::setupInferior()
|
|||||||
|
|
||||||
//const QByteArray sysroot = sp.sysroot.toLocal8Bit();
|
//const QByteArray sysroot = sp.sysroot.toLocal8Bit();
|
||||||
//const QByteArray remoteArch = sp.remoteArchitecture.toLatin1();
|
//const QByteArray remoteArch = sp.remoteArchitecture.toLatin1();
|
||||||
//const QByteArray gnuTarget = sp.gnuTarget.toLatin1();
|
|
||||||
const QString args = sp.processArgs;
|
const QString args = sp.processArgs;
|
||||||
|
|
||||||
// if (!remoteArch.isEmpty())
|
// if (!remoteArch.isEmpty())
|
||||||
// postCommand("set architecture " + remoteArch);
|
// postCommand("set architecture " + remoteArch);
|
||||||
// if (!gnuTarget.isEmpty())
|
|
||||||
// postCommand("set gnutarget " + gnuTarget);
|
|
||||||
const QString solibSearchPath = sp.solibSearchPath.join(QLatin1String(PATHSEP));
|
const QString solibSearchPath = sp.solibSearchPath.join(QLatin1String(PATHSEP));
|
||||||
if (!solibSearchPath.isEmpty())
|
if (!solibSearchPath.isEmpty())
|
||||||
postCommand("set solib-search-path " + solibSearchPath.toLocal8Bit());
|
postCommand("set solib-search-path " + solibSearchPath.toLocal8Bit());
|
||||||
|
@@ -117,14 +117,6 @@ DebuggerStartParameters AbstractRemoteLinuxDebugSupport::startParameters(const R
|
|||||||
params.startMode = AttachToRemoteServer;
|
params.startMode = AttachToRemoteServer;
|
||||||
params.executable = runConfig->localExecutableFilePath();
|
params.executable = runConfig->localExecutableFilePath();
|
||||||
params.remoteChannel = devConf->sshParameters().host + QLatin1String(":-1");
|
params.remoteChannel = devConf->sshParameters().host + QLatin1String(":-1");
|
||||||
|
|
||||||
// TODO: This functionality should be inside the debugger.
|
|
||||||
ToolChain *tc = ToolChainProfileInformation::toolChain(profile);
|
|
||||||
if (tc) {
|
|
||||||
const Abi &abi = tc->targetAbi();
|
|
||||||
params.gnuTarget = QLatin1String(abi.architecture() == Abi::ArmArchitecture
|
|
||||||
? "arm-none-linux-gnueabi": "i386-unknown-linux-gnu");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
params.startMode = AttachToRemoteServer;
|
params.startMode = AttachToRemoteServer;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user