aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-05-29 08:35:45 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-05-29 11:23:25 +0000
commit75b501be9db68944ca73237b69c58d2f43624cec (patch)
tree83290f07e397769dfaa828604ecc1e7efea2a59f /src/plugins/debugger/debuggerplugin.cpp
parent5261892fc5e771e829ae490763acaa782e2d6c0d (diff)
Debugger: Revive long lost tab titles
Tab titles of the application output pane for attach to running and unstarted applications had been present a long time ago. Change-Id: I0a4f18438bef967ad60c447c81d58fec6aa830ae Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index a0efaa358f..8c882ab99f 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -1683,6 +1683,8 @@ void DebuggerPluginPrivate::attachToRunningApplication()
} else {
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
runControl->setKit(kit);
+ //: %1: PID
+ runControl->setDisplayName(tr("Process %1").arg(process.pid));
auto debugger = new RemoteAttachRunner(runControl, process.pid);
debugger->startRunControl();
}
@@ -1737,9 +1739,10 @@ RunControl *DebuggerPluginPrivate::attachToRunningProcess(Kit *kit,
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
runControl->setKit(kit);
+ //: %1: PID
+ runControl->setDisplayName(tr("Process %1").arg(process.pid));
auto debugger = new DebuggerRunTool(runControl);
debugger->setAttachPid(ProcessHandle(process.pid));
- debugger->setRunControlName(tr("Process %1").arg(process.pid));
debugger->setInferiorExecutable(process.exe);
debugger->setInferiorDevice(device);
debugger->setStartMode(AttachExternal);