[Lldb-commits] [lldb] e2fa760 - Fix my use of the TARGET_OS_OSX TargetConditional.

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 6 20:29:03 PST 2020


Author: Jason Molenda
Date: 2020-02-06T20:28:28-08:00
New Revision: e2fa760cdde2ebaa93cf1e959189dece3e949a68

URL: https://github.com/llvm/llvm-project/commit/e2fa760cdde2ebaa93cf1e959189dece3e949a68
DIFF: https://github.com/llvm/llvm-project/commit/e2fa760cdde2ebaa93cf1e959189dece3e949a68.diff

LOG: Fix my use of the TARGET_OS_OSX TargetConditional.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp
index dfea6780f206..0eba6d5358d5 100644
--- a/lldb/tools/debugserver/source/RNBRemote.cpp
+++ b/lldb/tools/debugserver/source/RNBRemote.cpp
@@ -3766,7 +3766,7 @@ static bool login_session_has_gui_access () {
 // $ security authorizationdb read system.privilege.taskport.debug
 
 static bool developer_mode_enabled () {
-#if !defined (TARGET_OS_OSX)
+#if TARGET_OS_OSX == 1
   return true;
 #else
  CFDictionaryRef currentRightDict = NULL;


        


More information about the lldb-commits mailing list