forked from qt-creator/qt-creator
Debugger: Use Utils::ProcessHandle for DebuggerEngine::m_inferiorPid
That's the intended "typesafe" use. Change-Id: Ib288fe87a47bd9484bda83e05406f0d22989b3c2 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -380,9 +380,9 @@ static DebuggerRunControl *doCreate(DebuggerRunParameters rp, RunConfiguration *
|
||||
}
|
||||
|
||||
// We might get an executable from a local PID.
|
||||
if (rp.inferior.executable.isEmpty() && rp.attachPID != InvalidPid) {
|
||||
if (rp.inferior.executable.isEmpty() && rp.attachPID.isValid()) {
|
||||
foreach (const DeviceProcessItem &p, DeviceProcessList::localProcesses())
|
||||
if (p.pid == rp.attachPID)
|
||||
if (p.pid == rp.attachPID.pid())
|
||||
rp.inferior.executable = p.exe;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user