From 218205bbf14f193850102bcbc312d52c7567b8a5 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 31 May 2011 10:42:18 +0200 Subject: [PATCH] debugger: rename 'abiOfBinary' to 'anyAbiOfBinary' Change-Id: I857dc6d256cbcbfcbf3cfb5113c697b6403a3f38 Reviewed-on: http://codereview.qt.nokia.com/257 Reviewed-by: Qt Sanity Bot Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 30904e6bc38..ffc83d41316 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -455,7 +455,7 @@ static QToolButton *toolButton(QAction *action) return button; } -static Abi abiOfBinary(const QString &fileName) +static Abi anyAbiOfBinary(const QString &fileName) { QList abis = Abi::abisOfBinary(fileName); if (abis.isEmpty()) @@ -1183,7 +1183,7 @@ 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); - sp.toolChainAbi = abiOfBinary(sp.executable); + sp.toolChainAbi = anyAbiOfBinary(sp.executable); } else { // Fixme: Distinguish between core-file and executable by argument syntax? // (default up to 2.2 was core-file). @@ -1198,7 +1198,7 @@ bool DebuggerPluginPrivate::parseArgument(QStringList::const_iterator &it, sp.displayName = tr("Core file \"%1\"").arg(sp.coreFile); sp.startMessage = tr("Attaching to core file %1.").arg(sp.coreFile); } - sp.toolChainAbi = abiOfBinary(*it); + sp.toolChainAbi = anyAbiOfBinary(*it); } m_scheduledStarts.append(sp); return true; @@ -1429,7 +1429,7 @@ void DebuggerPluginPrivate::attachExternalApplication(ProjectExplorer::RunContro sp.attachPID = rc->applicationProcessHandle().pid(); sp.displayName = tr("Debugger attached to %1").arg(rc->displayName()); sp.startMode = AttachExternal; - //sp.toolChainAbi = abiOfBinary(sp.executable); + //sp.toolChainAbi = anyAbiOfBinary(sp.executable); sp.toolChainAbi = ProjectExplorer::Abi::hostAbi(); // FIXME: Extract from RunControl? if (DebuggerRunControl *rc = createDebugger(sp)) startDebugger(rc); @@ -1475,7 +1475,7 @@ void DebuggerPluginPrivate::attachRemote(const QString &spec) sp.remoteArchitecture = spec.section('@', 2, 2); sp.displayName = tr("Remote: \"%1\"").arg(sp.remoteChannel); sp.startMode = AttachToRemote; - sp.toolChainAbi = abiOfBinary(sp.executable); + sp.toolChainAbi = anyAbiOfBinary(sp.executable); if (DebuggerRunControl *rc = createDebugger(sp)) startDebugger(rc); }