[Lldb-commits] [lldb] r258365 - Fixed some #ifdefs. We were erroneously not supporting certain simulators.

Sean Callanan via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 20 15:12:40 PST 2016


Author: spyffe
Date: Wed Jan 20 17:12:39 2016
New Revision: 258365

URL: http://llvm.org/viewvc/llvm-project?rev=258365&view=rev
Log:
Fixed some #ifdefs.  We were erroneously not supporting certain simulators.

We had some #ifdefs that were looking for the wrong #defines and as a result
debugserver didn't have support for certain simulators.  This patch resolves
the problem.

Modified:
    lldb/trunk/tools/debugserver/source/RNBRemote.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=258365&r1=258364&r2=258365&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Wed Jan 20 17:12:39 2016
@@ -5863,7 +5863,7 @@ RNBRemote::HandlePacket_qProcessInfo (co
                     DNBLogThreadedIf (LOG_RNB_PROC, "LC_VERSION_MIN_MACOSX -> 'ostype:macosx;'");
                     break;
 
-#if defined (TARGET_OS_TV) && TARGET_OS_TV == 1
+#if defined (LC_VERSION_MIN_TVOS)
                 case LC_VERSION_MIN_TVOS:
                     os_handled = true;
                     rep << "ostype:tvos;";
@@ -5871,7 +5871,7 @@ RNBRemote::HandlePacket_qProcessInfo (co
                     break;
 #endif
 
-#if defined (TARGET_OS_WATCH) && TARGET_OS_WATCH == 1
+#if defined (LC_VERSION_MIN_WATCHOS)
                 case LC_VERSION_MIN_WATCHOS:
                     os_handled = true;
                     rep << "ostype:watchos;";




More information about the lldb-commits mailing list