Index: lldb/source/Target/Process.cpp =================================================================== --- lldb/source/Target/Process.cpp +++ lldb/source/Target/Process.cpp @@ -2901,6 +2901,11 @@ const uint32_t num_matches = process_infos.size(); if (num_matches == 1) { attach_pid = process_infos[0].GetProcessID(); + // attach_info will be passed to DoAttachToProcessWithID() + // which uses the pid to determine if this is a translated + // process so include the pid we just found in the attach_info. + attach_info.SetProcessID(attach_pid); + // Fall through and attach using the above process ID } else { match_info.GetProcessInfo().GetExecutableFile().GetPath(