diff options
author | Christian Stenger <christian.stenger@qt.io> | 2019-05-29 08:35:45 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2019-05-29 11:23:25 +0000 |
commit | 75b501be9db68944ca73237b69c58d2f43624cec (patch) | |
tree | 83290f07e397769dfaa828604ecc1e7efea2a59f | |
parent | 5261892fc5e771e829ae490763acaa782e2d6c0d (diff) | |
download | qt-creator-75b501be9db68944ca73237b69c58d2f43624cec.tar.gz |
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>
-rw-r--r-- | src/plugins/debugger/debuggerplugin.cpp | 5 |
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); |