Commit ae806511 authored by Robert Loehning's avatar Robert Loehning

Debugger: Don't try to find two processes with same PID

Change-Id: I88500973f698db55b10528a61cf38de6ef248949
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 406ddaa3
......@@ -303,9 +303,12 @@ static bool fixupParameters(DebuggerRunParameters &rp, RunControl *runControl, Q
// We might get an executable from a local PID.
if (rp.inferior.executable.isEmpty() && rp.attachPID.isValid()) {
foreach (const DeviceProcessItem &p, DeviceProcessList::localProcesses())
if (p.pid == rp.attachPID.pid())
foreach (const DeviceProcessItem &p, DeviceProcessList::localProcesses()) {
if (p.pid == rp.attachPID.pid()) {
rp.inferior.executable = p.exe;
break;
}
}
}
rp.macroExpander = kit->macroExpander();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment