[Lldb-commits] [lldb] r230694 - Fix Bug 20400

Chaoren Lin chaorenl at google.com
Thu Feb 26 14:15:16 PST 2015


Author: chaoren
Date: Thu Feb 26 16:15:16 2015
New Revision: 230694

URL: http://llvm.org/viewvc/llvm-project?rev=230694&view=rev
Log:
Fix Bug 20400

Summary:
http://llvm.org/bugs/show_bug.cgi?id=20400

The default triple of i686-pc-linux-gnu for 32 bit linux targets is compatible
but not necessarily identical to the inferior binaries.

Applying Azat Khuzhin's solution of using ArchSpec::IsCompatibleMatch() instead
of ArchSpec::IsExactMatch() when comparing ObjectFile and Modules architecture.

Reviewers: vharron

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D7897

Modified:
    lldb/trunk/source/Core/Module.cpp

Modified: lldb/trunk/source/Core/Module.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Module.cpp?rev=230694&r1=230693&r2=230694&view=diff
==============================================================================
--- lldb/trunk/source/Core/Module.cpp (original)
+++ lldb/trunk/source/Core/Module.cpp Thu Feb 26 16:15:16 2015
@@ -1608,7 +1608,7 @@ Module::SetArchitecture (const ArchSpec
         m_arch = new_arch;
         return true;
     }    
-    return m_arch.IsExactMatch(new_arch);
+    return m_arch.IsCompatibleMatch(new_arch);
 }
 
 bool 





More information about the lldb-commits mailing list