[Lldb-commits] [lldb] 9cc6e6f - [lldb] Use CFPropertyListCreateData in debugserver (NFC) (#112262)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 14 14:30:35 PDT 2024
Author: Jonas Devlieghere
Date: 2024-10-14T14:30:32-07:00
New Revision: 9cc6e6f71c117c3c47f3eee253c8a429118c11e5
URL: https://github.com/llvm/llvm-project/commit/9cc6e6f71c117c3c47f3eee253c8a429118c11e5
DIFF: https://github.com/llvm/llvm-project/commit/9cc6e6f71c117c3c47f3eee253c8a429118c11e5.diff
LOG: [lldb] Use CFPropertyListCreateData in debugserver (NFC) (#112262)
CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use
CFPropertyListCreateData instead.
Added:
Modified:
lldb/tools/debugserver/source/RNBServices.cpp
Removed:
################################################################################
diff --git a/lldb/tools/debugserver/source/RNBServices.cpp b/lldb/tools/debugserver/source/RNBServices.cpp
index 6e4b55e3e6466d..bb57fb5ea027eb 100644
--- a/lldb/tools/debugserver/source/RNBServices.cpp
+++ b/lldb/tools/debugserver/source/RNBServices.cpp
@@ -208,8 +208,8 @@ int ListApplications(std::string &plist, bool opt_runningApps,
GetProcesses(plistMutableArray.get(), all_users);
#endif
- CFReleaser<CFDataRef> plistData(
- ::CFPropertyListCreateXMLData(alloc, plistMutableArray.get()));
+ CFReleaser<CFDataRef> plistData(::CFPropertyListCreateData(
+ alloc, plistMutableArray.get(), kCFPropertyListXMLFormat_v1_0, 0, NULL));
// write plist to service port
if (plistData.get() != NULL) {
More information about the lldb-commits
mailing list