This revision was automatically updated to reflect the committed changes.
Closed by commit rG272355128f48: [debugserver] Various plist changes (authored 
by JDevlieghere).
Herald added a project: LLDB.

Changed prior to commit:
  https://reviews.llvm.org/D94320?vs=315435&id=315565#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94320/new/

https://reviews.llvm.org/D94320

Files:
  lldb/tools/debugserver/debugnub-exports
  lldb/tools/debugserver/resources/debugserver-entitlements.plist
  lldb/tools/debugserver/resources/debugserver-macosx-entitlements.plist
  lldb/tools/debugserver/resources/debugserver-macosx-private-entitlements.plist
  lldb/tools/debugserver/source/CMakeLists.txt
  lldb/tools/debugserver/source/com.apple.debugserver.applist.internal.plist
  lldb/tools/debugserver/source/com.apple.debugserver.applist.plist
  lldb/tools/debugserver/source/com.apple.debugserver.internal.plist
  lldb/tools/debugserver/source/com.apple.debugserver.plist
  lldb/tools/debugserver/source/com.apple.debugserver.posix.internal.plist
  lldb/tools/debugserver/source/com.apple.debugserver.posix.plist
  lldb/tools/debugserver/source/com.apple.internal.xpc.remote.debugserver.plist
  lldb/tools/debugserver/source/debugserver-entitlements.plist
  lldb/tools/debugserver/source/debugserver-macosx-entitlements.plist

Index: lldb/tools/debugserver/source/com.apple.internal.xpc.remote.debugserver.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.internal.xpc.remote.debugserver.plist
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.internal.xpc.remote.debugserver</string>
-	<key>RemoteServices</key>
-	<dict>
-		<key>com.apple.internal.debugserver</key>
-		<dict>
-			<key>RequireEntitlement</key>
-			<string>AppleInternal</string>
-			<key>ExposedToUntrustedDevices</key>
-			<true/>
-		</dict>
-	</dict>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/usr/libexec/remotectl</string>
-		<string>trampoline</string>
-		<string>-2</string>
-		<string>42</string>
-		<string>com.apple.internal.debugserver</string>
-		<string>/usr/local/bin/debugserver-nonui</string>
-		<string>--fd</string>
-		<string>42</string>
-	</array>
-	<key>POSIXSpawnType</key>
-	<string>Interactive</string>
-	<key>EnableTransactions</key>
-	<true/>
-	<key>EnablePressuredExit</key>
-	<true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.posix.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.posix.plist
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver.posix</string>
-	<key>UserName</key>
-	<string>mobile</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-		<string>--launch=posix</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.posix.internal.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.posix.internal.plist
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver.posix.internal</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-		<string>--launch=posix</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.plist
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver</string>
-	<key>UserName</key>
-	<string>mobile</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-        <string>--launch=frontboard</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.internal.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.internal.plist
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver.internal</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.applist.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.applist.plist
+++ /dev/null
@@ -1,19 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver.applist</string>
-	<key>UserName</key>
-	<string>mobile</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-        <string>--applist</string>
-        <string>--launch=frontboard</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/com.apple.debugserver.applist.internal.plist
===================================================================
--- lldb/tools/debugserver/source/com.apple.debugserver.applist.internal.plist
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-	<key>Label</key>
-	<string>com.apple.debugserver.applist.internal</string>
-	<key>ProgramArguments</key>
-	<array>
-		<string>/Developer/usr/bin/debugserver</string>
-		<string>--lockdown</string>
-		<string>--applist</string>
-	</array>
-    <key>AllowByProxy</key>
-    <true/>
-</dict>
-</plist>
Index: lldb/tools/debugserver/source/CMakeLists.txt
===================================================================
--- lldb/tools/debugserver/source/CMakeLists.txt
+++ lldb/tools/debugserver/source/CMakeLists.txt
@@ -60,7 +60,10 @@
 # llvm dependencies in the current scope to the empty set.
 set(LLVM_COMMON_DEPENDS)
 
-set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -Wl,-sectcreate,__TEXT,__info_plist,${CMAKE_CURRENT_SOURCE_DIR}/../resources/lldb-debugserver-Info.plist")
+set(DEBUGSERVER_RESOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../resources")
+set(DEBUGSERVER_INFO_PLIST "${DEBUGSERVER_RESOURCE_DIR}/lldb-debugserver-Info.plist")
+
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -Wl,-sectcreate,__TEXT,__info_plist,${DEBUGSERVER_INFO_PLIST}")
 
 check_cxx_compiler_flag("-Wno-gnu-zero-variadic-macro-arguments"
                         CXX_SUPPORTS_NO_GNU_ZERO_VARIADIC_MACRO_ARGUMENTS)
@@ -128,8 +131,11 @@
   if(APPLE_EMBEDDED)
     set(entitlements ${CMAKE_CURRENT_SOURCE_DIR}/debugserver-entitlements.plist)
   else()
-    # Same entitlements file as used for lldb-server
-    set(entitlements ${LLDB_SOURCE_DIR}/resources/debugserver-macosx-entitlements.plist)
+    if (LLDB_USE_PRIVATE_ENTITLEMENTS)
+      set(entitlements ${DEBUGSERVER_RESOURCE_DIR}/debugserver-macosx-entitlements.plist)
+    else()
+      set(entitlements ${DEBUGSERVER_RESOURCE_DIR}/debugserver-macosx-private-entitlements.plist)
+    endif()
   endif()
 endif()
 
Index: lldb/tools/debugserver/resources/debugserver-macosx-entitlements.plist
===================================================================
--- lldb/tools/debugserver/resources/debugserver-macosx-entitlements.plist
+++ lldb/tools/debugserver/resources/debugserver-macosx-entitlements.plist
@@ -2,9 +2,7 @@
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
 <plist version="1.0">
 <dict>
-    <key>com.apple.private.logging.diagnostic</key>
-    <true/>
-    <key>com.apple.private.cs.debugger</key>
+    <key>com.apple.security.cs.debugger</key>
     <true/>
 </dict>
 </plist>
Index: lldb/tools/debugserver/debugnub-exports
===================================================================
--- lldb/tools/debugserver/debugnub-exports
+++ /dev/null
@@ -1,2 +0,0 @@
-_DNB*
-__DNB*
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to