forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.6'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/fakevim/fakevimhandler.cpp src/plugins/qtsupport/baseqtversion.cpp tests/auto/cplusplus/cxx11/cxx11.pro tests/auto/cplusplus/cxx11/tst_cxx11.cpp tests/auto/icheckbuild/icheckbuild.pro Change-Id: I3c8351ad35617f56d15b788c8a46d8a6f453ef70
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
#include <projectexplorer/taskhub.h>
|
||||
|
||||
#include <utils/synchronousprocess.h>
|
||||
#include <utils/qtcprocess.h>
|
||||
#include <utils/winutils.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/savedaction.h>
|
||||
@@ -681,7 +682,8 @@ bool CdbEngine::launchCDB(const DebuggerStartParameters &sp, QString *errorMessa
|
||||
case StartExternal:
|
||||
if (!nativeArguments.isEmpty())
|
||||
nativeArguments.push_back(blank);
|
||||
nativeArguments += QDir::toNativeSeparators(sp.executable);
|
||||
Utils::QtcProcess::addArgs(&nativeArguments,
|
||||
QStringList(QDir::toNativeSeparators(sp.executable)));
|
||||
break;
|
||||
case AttachToRemoteServer:
|
||||
break;
|
||||
|
||||
@@ -1765,6 +1765,7 @@ void DebuggerPluginPrivate::attachToQmlPort()
|
||||
sp.startMode = AttachToRemoteProcess;
|
||||
sp.closeMode = KillAtClose;
|
||||
sp.languages = QmlLanguage;
|
||||
sp.masterEngineType = QmlEngineType;
|
||||
|
||||
//
|
||||
// get files from all the projects in the session
|
||||
|
||||
@@ -420,17 +420,21 @@ void QmlEngine::beginConnection(quint16 port)
|
||||
|
||||
QTC_ASSERT(state() == EngineRunRequested, return);
|
||||
|
||||
QString host = startParameters().qmlServerAddress;
|
||||
// Use localhost as default
|
||||
if (host.isEmpty())
|
||||
host = QLatin1String("localhost");
|
||||
|
||||
if (port > 0) {
|
||||
QTC_ASSERT(startParameters().connParams.port == 0
|
||||
|| startParameters().connParams.port == port,
|
||||
qWarning() << "Port " << port << "from application output does not match"
|
||||
<< startParameters().connParams.port << "from start parameters.");
|
||||
m_adapter.beginConnectionTcp(startParameters().qmlServerAddress, port);
|
||||
m_adapter.beginConnectionTcp(host, port);
|
||||
return;
|
||||
}
|
||||
// no port from application output, use the one from start parameters ...
|
||||
m_adapter.beginConnectionTcp(startParameters().qmlServerAddress,
|
||||
startParameters().qmlServerPort);
|
||||
m_adapter.beginConnectionTcp(host, startParameters().qmlServerPort);
|
||||
}
|
||||
|
||||
void QmlEngine::connectionStartupFailed()
|
||||
|
||||
Reference in New Issue
Block a user