forked from qt-creator/qt-creator
Debugger: Fix "Attach to running process"
Change-Id: I3cef08621c40c87f52e20a229ab5e16f0bfa8bb1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1740,6 +1740,7 @@ RunControl *DebuggerPluginPrivate::attachToRunningProcess(Kit *kit,
|
||||
}
|
||||
|
||||
auto runControl = new RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
runControl->setKit(kit);
|
||||
auto debugger = new DebuggerRunTool(runControl);
|
||||
debugger->setAttachPid(ProcessHandle(process.pid));
|
||||
debugger->setRunControlName(tr("Process %1").arg(process.pid));
|
||||
|
@@ -4257,6 +4257,8 @@ void GdbEngine::handleAttach(const DebuggerResponse &response)
|
||||
notifyEngineRunAndInferiorStopOk();
|
||||
if (runParameters().continueAfterAttach)
|
||||
continueInferiorInternal();
|
||||
else
|
||||
updateAll();
|
||||
}
|
||||
break;
|
||||
case ResultError:
|
||||
|
Reference in New Issue
Block a user