[Lldb-commits] [lldb] r265419 - Make sure to update Target arch if environment changed

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 5 10:27:54 PDT 2016


Author: sas
Date: Tue Apr  5 12:27:52 2016
New Revision: 265419

URL: http://llvm.org/viewvc/llvm-project?rev=265419&view=rev
Log:
Make sure to update Target arch if environment changed

Summary: Fixes "target list" for non-android linux platforms (ie gnu, gnueabi)

Reviewers: jasonmolenda, tfiala, clayborg, tberghammer

Subscribers: tberghammer, danalbert, lldb-commits, sas

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

Change by Francis Ricci <fjricci at fb.com>

Modified:
    lldb/trunk/source/Target/Target.cpp

Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=265419&r1=265418&r2=265419&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Tue Apr  5 12:27:52 2016
@@ -1301,7 +1301,7 @@ Target::SetArchitecture (const ArchSpec
                                               os_ver_changed,
                                               env_changed);
                 
-                if (!arch_changed && !vendor_changed && !os_changed)
+                if (!arch_changed && !vendor_changed && !os_changed && !env_changed)
                     replace_local_arch = false;
             }
         }




More information about the lldb-commits mailing list