forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user