From 0bea2457457f40f6b8da56190890f7486685b43d Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 29 Oct 2010 14:04:23 +0200 Subject: Debugger/Remote Debugging: Add "GNU target" start parameter. This is needed for multi-architecture gdb. Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/plugins/debugger/debuggerplugin.cpp') diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 2f01fd93a9..0f6648680f 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -1877,16 +1877,28 @@ void DebuggerPluginPrivate::startRemoteApplication() QStringList arches; arches.append(_("i386:x86-64:intel")); arches.append(_("i386")); + arches.append(_("arm")); QString lastUsed = configValue(_("LastRemoteArchitecture")).toString(); if (!arches.contains(lastUsed)) arches.prepend(lastUsed); dlg.setRemoteArchitectures(arches); + QStringList gnuTargets; + gnuTargets.append(_("auto")); + gnuTargets.append(_("i686-linux-gnu")); + gnuTargets.append(_("x86_64-linux-gnu")); + gnuTargets.append(_("arm-none-linux-gnueabi")); + const QString lastUsedGnuTarget + = configValue(_("LastGnuTarget")).toString(); + if (!gnuTargets.contains(lastUsedGnuTarget)) + gnuTargets.prepend(lastUsedGnuTarget); + dlg.setGnuTargets(gnuTargets); dlg.setRemoteChannel( configValue(_("LastRemoteChannel")).toString()); dlg.setLocalExecutable( configValue(_("LastLocalExecutable")).toString()); dlg.setDebugger(configValue(_("LastDebugger")).toString()); dlg.setRemoteArchitecture(lastUsed); + dlg.setGnuTarget(lastUsedGnuTarget); dlg.setServerStartScript( configValue(_("LastServerStartScript")).toString()); dlg.setUseServerStartScript( @@ -1898,11 +1910,13 @@ void DebuggerPluginPrivate::startRemoteApplication() setConfigValue(_("LastLocalExecutable"), dlg.localExecutable()); setConfigValue(_("LastDebugger"), dlg.debugger()); setConfigValue(_("LastRemoteArchitecture"), dlg.remoteArchitecture()); + setConfigValue(_("LastGnuTarget"), dlg.gnuTarget()); setConfigValue(_("LastServerStartScript"), dlg.serverStartScript()); setConfigValue(_("LastUseServerStartScript"), dlg.useServerStartScript()); setConfigValue(_("LastSysroot"), dlg.sysRoot()); sp.remoteChannel = dlg.remoteChannel(); sp.remoteArchitecture = dlg.remoteArchitecture(); + sp.gnuTarget = dlg.gnuTarget(); sp.executable = dlg.localExecutable(); sp.displayName = dlg.localExecutable(); sp.debuggerCommand = dlg.debugger(); // Override toolchain-detection. -- cgit v1.2.1