diff options
author | hjk <hjk@qt.io> | 2019-08-23 11:13:29 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-08-26 08:16:03 +0000 |
commit | dca7edbeef1ad622e41987b6cf87d1873ad757e6 (patch) | |
tree | 2b21ea3eb246cfcfc6f91b7ce1043334649e1e5c /src/plugins/boot2qt | |
parent | 89f3b32104e1094bdb6942c52e1ee0eced2f0c3c (diff) |
Let PortsGatherer produce full URLs instead of ports only
This is what the consuming code expects in most cases.
Change-Id: I135592039e28b994996186f627215ab1d2f8d6dc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/plugins/boot2qt')
-rw-r--r-- | src/plugins/boot2qt/qdbdevicedebugsupport.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/boot2qt/qdbdevicedebugsupport.cpp b/src/plugins/boot2qt/qdbdevicedebugsupport.cpp index cf2fe493274..7ef38ad8322 100644 --- a/src/plugins/boot2qt/qdbdevicedebugsupport.cpp +++ b/src/plugins/boot2qt/qdbdevicedebugsupport.cpp @@ -72,16 +72,15 @@ public: addStartDependency(m_portsGatherer); } - Port perfPort() const { return m_portsGatherer->gdbServerPort(); } + QUrl perfServer() const { return m_portsGatherer->gdbServer(); } QUrl gdbServer() const { return m_portsGatherer->gdbServer(); } - Port qmlServerPort() const { return m_portsGatherer->qmlServerPort(); } QUrl qmlServer() const { return m_portsGatherer->qmlServer(); } void start() override { - const int perfPort = m_portsGatherer->gdbServerPort().number(); - const int gdbServerPort = m_portsGatherer->gdbServerPort().number(); - const int qmlServerPort = m_portsGatherer->qmlServerPort().number(); + const int perfPort = m_portsGatherer->gdbServer().port(); + const int gdbServerPort = m_portsGatherer->gdbServer().port(); + const int qmlServerPort = m_portsGatherer->qmlServer().port(); int lowerPort = 0; int upperPort = 0; @@ -212,11 +211,7 @@ QdbDevicePerfProfilerSupport::QdbDevicePerfProfilerSupport(RunControl *runContro void QdbDevicePerfProfilerSupport::start() { - QUrl url; - url.setScheme(Utils::urlTcpScheme()); - url.setHost(device()->sshParameters().host()); - url.setPort(m_profilee->perfPort().number()); - runControl()->setProperty("PerfConnection", url); + runControl()->setProperty("PerfConnection", m_profilee->perfServer()); reportStarted(); } |