From 75b501be9db68944ca73237b69c58d2f43624cec Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 29 May 2019 08:35:45 +0200 Subject: [PATCH] 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 --- src/plugins/debugger/debuggerplugin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index a0efaa358f3..8c882ab99f8 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);