summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-11-11 12:37:50 +0100
committerhjk <hjk@qt.io>2020-02-11 13:12:16 +0000
commit82e8ceab8bac04b831cde7c2e4ad39d8c5fad8aa (patch)
tree8125b4c33023487a8f571b5fa67b304f609d58bd /src/plugins/debugger
parent9645906ae2d8b705e928a788dbd5dca5f99b344a (diff)
downloadqt-creator-82e8ceab8bac04b831cde7c2e4ad39d8c5fad8aa.tar.gz
Debugger: Use some more verbose description for attaching to remote
Change-Id: I36e9793b1db98b538455c8d6075e8116a5af14bb Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/debuggerdialogs.cpp1
-rw-r--r--src/plugins/debugger/debuggerruncontrol.cpp5
-rw-r--r--src/plugins/debugger/debuggerruncontrol.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp
index ea442c1891..599d2382a9 100644
--- a/src/plugins/debugger/debuggerdialogs.cpp
+++ b/src/plugins/debugger/debuggerdialogs.cpp
@@ -423,6 +423,7 @@ void StartApplicationDialog::run(bool attachRemote)
debugger->setStartMode(AttachToRemoteServer);
debugger->setCloseMode(KillAtClose);
debugger->setUseContinueInsteadOfRun(true);
+ debugger->setRunControlName(tr("Attach to %1").arg(debugger->remoteChannel()));
}
debugger->startRunControl();
}
diff --git a/src/plugins/debugger/debuggerruncontrol.cpp b/src/plugins/debugger/debuggerruncontrol.cpp
index 1cf9a6f5ab..c6cf2ec248 100644
--- a/src/plugins/debugger/debuggerruncontrol.cpp
+++ b/src/plugins/debugger/debuggerruncontrol.cpp
@@ -335,6 +335,11 @@ void DebuggerRunTool::setRemoteChannel(const QUrl &url)
m_runParameters.remoteChannel = QString("%1:%2").arg(url.host()).arg(url.port());
}
+QString DebuggerRunTool::remoteChannel() const
+{
+ return m_runParameters.remoteChannel;
+}
+
void DebuggerRunTool::setRemoteChannel(const QString &host, int port)
{
m_runParameters.remoteChannel = QString("%1:%2").arg(host).arg(port);
diff --git a/src/plugins/debugger/debuggerruncontrol.h b/src/plugins/debugger/debuggerruncontrol.h
index aa4abe6f05..80b877a67a 100644
--- a/src/plugins/debugger/debuggerruncontrol.h
+++ b/src/plugins/debugger/debuggerruncontrol.h
@@ -95,6 +95,7 @@ public:
void setRemoteChannel(const QString &channel);
void setRemoteChannel(const QString &host, int port);
void setRemoteChannel(const QUrl &url);
+ QString remoteChannel() const;
void setUseExtendedRemote(bool on);
void setUseContinueInsteadOfRun(bool on);