forked from qt-creator/qt-creator
Debugger: Don't try to find two processes with same PID
Change-Id: I88500973f698db55b10528a61cf38de6ef248949 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user