[Lldb-commits] [lldb] r156626 - /lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp

Greg Clayton gclayton at apple.com
Fri May 11 11:37:58 PDT 2012


Author: gclayton
Date: Fri May 11 13:37:58 2012
New Revision: 156626

URL: http://llvm.org/viewvc/llvm-project?rev=156626&view=rev
Log:
Fixed an issue in the platform options where if no architecture was specified where the platform would fail to select itself with something like:

(lldb) platfrom select remote-ios


Modified:
    lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp

Modified: lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp?rev=156626&r1=156625&r2=156626&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp (original)
+++ lldb/trunk/source/Interpreter/OptionGroupPlatform.cpp Fri May 11 13:37:58 2012
@@ -34,7 +34,7 @@
         platform_sp = Platform::Create (m_platform_name.c_str(), error);
         if (platform_sp)
         {
-            if (!platform_sp->IsCompatibleArchitecture(arch, &platform_arch))
+            if (platform_arch.IsValid() && !platform_sp->IsCompatibleArchitecture(arch, &platform_arch))
             {
                 error.SetErrorStringWithFormat("platform '%s' doesn't support '%s'", platform_sp->GetName(), arch.GetTriple().getTriple().c_str());
                 platform_sp.reset();





More information about the lldb-commits mailing list