diff options
Diffstat (limited to 'lldb/source/Target')
-rw-r--r-- | lldb/source/Target/Platform.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 | ||||
-rw-r--r-- | lldb/source/Target/Target.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Target/TargetList.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 86ef2a022ea..22fb9978711 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -688,7 +688,7 @@ Platform::IsCompatibleArchitecture (const ArchSpec &arch, ArchSpec *compatible_a ArchSpec platform_arch; for (uint32_t arch_idx=0; GetSupportedArchitectureAtIndex (arch_idx, platform_arch); ++arch_idx) { - if (arch == platform_arch) + if (arch.IsCompatibleMatch(platform_arch)) { if (compatible_arch_ptr) *compatible_arch_ptr = platform_arch; diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 7ed4cb09b9a..5394923af39 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -831,7 +831,7 @@ ProcessInstanceInfoMatch::Matches (const ProcessInstanceInfo &proc_info) const return false; if (m_match_info.GetArchitecture().IsValid() && - m_match_info.GetArchitecture() != proc_info.GetArchitecture()) + !m_match_info.GetArchitecture().IsCompatibleMatch(proc_info.GetArchitecture())) return false; return true; } @@ -2971,7 +2971,7 @@ Process::CompleteAttach () ProcessInstanceInfo process_info; platform_sp->GetProcessInfo (GetID(), process_info); const ArchSpec &process_arch = process_info.GetArchitecture(); - if (process_arch.IsValid() && m_target.GetArchitecture() != process_arch) + if (process_arch.IsValid() && !m_target.GetArchitecture().IsExactMatch(process_arch)) m_target.SetArchitecture (process_arch); } } diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 888545a0f1a..e373efeea0a 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1054,7 +1054,7 @@ bool Target::SetArchitecture (const ArchSpec &arch_spec) { LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_TARGET)); - if (m_arch == arch_spec || !m_arch.IsValid()) + if (m_arch.IsCompatibleMatch(arch_spec) || !m_arch.IsValid()) { // If we haven't got a valid arch spec, or the architectures are // compatible, so just update the architecture. Architectures can be diff --git a/lldb/source/Target/TargetList.cpp b/lldb/source/Target/TargetList.cpp index ff9e8558ccd..c67b42fa1fc 100644 --- a/lldb/source/Target/TargetList.cpp +++ b/lldb/source/Target/TargetList.cpp @@ -301,7 +301,7 @@ TargetList::FindTargetWithExecutableAndArchitecture { if (exe_arch_ptr) { - if (*exe_arch_ptr != exe_module->GetArchitecture()) + if (!exe_arch_ptr->IsCompatibleMatch(exe_module->GetArchitecture())) continue; } target_sp = *pos; |