aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-07-25 03:38:19 +0200
committerhjk <[email protected]>2012-07-25 10:39:00 +0200
commit26e7ed14b7cc275c6975d24f3a13e0c81a050f2b (patch)
treef044d45a6d0fc6d0796f6b675749f940a9881d26 /src/plugins/debugger/debuggerplugin.cpp
parentc6f7eaea592c1721cfaaa779cda61f8c9f30ea99 (diff)
debugger: remove unused code
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 74745813820..5284797f7ac 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -784,7 +784,6 @@ public slots:
Q_SLOT void attachExternalApplication(ProjectExplorer::RunControl *rc);
void runScheduled();
void attachCore();
- void attachToRemoteServer(const QString &spec);
void enableReverseDebuggingTriggered(const QVariant &value);
void languagesChanged();
@@ -1315,7 +1314,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
{
const QString &option = *it;
// '-debug <pid>'
- // '-debug <exe>[,server=<server:port>|,core=<core>][,arch=<arch>][,profile=<profile>]'
+ // '-debug <exe>[,server=<server:port>][,core=<core>][,profile=<profile>]'
if (*it == _("-debug")) {
++it;
if (it == cend) {
@@ -1353,8 +1352,6 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it,
sp.displayName = tr("Remote: \"%1\"").arg(sp.remoteChannel);
sp.startMessage = tr("Attaching to remote server %1.").arg(sp.remoteChannel);
}
- else if (key == QLatin1String("arch"))
- sp.remoteArchitecture = val;
else if (key == QLatin1String("core")) {
sp.startMode = AttachCore;
sp.closeMode = DetachAtClose;
@@ -1598,22 +1595,6 @@ void DebuggerPluginPrivate::attachCore()
startDebugger(rc);
}
-void DebuggerPluginPrivate::attachToRemoteServer(const QString &spec)
-{
- // spec is: profile@server:port@executable@architecture
- const QChar delim(QLatin1Char('@'));
- DebuggerStartParameters sp;
- fillParameters(&sp, Id(spec.section(delim, 0, 0)));
- sp.remoteChannel = spec.section(delim, 1, 1);
- sp.executable = spec.section(delim, 2, 2);
- sp.remoteArchitecture = spec.section(delim, 3, 3);
- sp.displayName = tr("Remote: \"%1\"").arg(sp.remoteChannel);
- sp.startMode = AttachToRemoteServer;
- sp.closeMode = KillAtClose;
- if (DebuggerRunControl *rc = createDebugger(sp))
- startDebugger(rc);
-}
-
struct RemoteCdbMatcher : ProfileMatcher
{
RemoteCdbMatcher() : m_hostAbi(Abi::hostAbi()) {}
@@ -2734,8 +2715,7 @@ static QString formatStartParameters(DebuggerStartParameters &sp)
str << "QML server: " << sp.qmlServerAddress << ':'
<< sp.qmlServerPort << '\n';
if (!sp.remoteChannel.isEmpty()) {
- str << "Remote: " << sp.remoteChannel << ", "
- << sp.remoteArchitecture << '\n';
+ str << "Remote: " << sp.remoteChannel << '\n';
if (!sp.remoteDumperLib.isEmpty())
str << "Remote dumpers: " << sp.remoteDumperLib << '\n';
if (!sp.remoteSourcesDir.isEmpty())