Commit 5a791e88 authored by hjk's avatar hjk
Browse files

Debugger: Don't search for an attachable process without valid pid



We won't find one.

Change-Id: I65babeea22045ae5a74f346558c7297cb65945c5
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 68409fb9
......@@ -350,8 +350,8 @@ void DebuggerRunControlCreator::enrich(const RunConfiguration *runConfig, const
m_kit = m_target->kit();
}
// We might have get an executable from a local PID.
if (m_rp.executable.isEmpty()) {
// We might get an executable from a local PID.
if (m_rp.executable.isEmpty() && m_rp.attachPID != InvalidPid) {
foreach (const DeviceProcessItem &p, DeviceProcessList::localProcesses())
if (p.pid == m_rp.attachPID)
m_rp.executable = p.exe;
......
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