Skip to content

Commit 97d0113

Browse files
committed
[lldb] Use CFPropertyListCreateData in debugserver (NFC) (llvm#112262)
CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use CFPropertyListCreateData instead. (cherry picked from commit 9cc6e6f)
1 parent b245d2e commit 97d0113

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/debugserver/source/RNBServices.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ int ListApplications(std::string &plist, bool opt_runningApps,
208208
GetProcesses(plistMutableArray.get(), all_users);
209209
#endif
210210

211-
CFReleaser<CFDataRef> plistData(
212-
::CFPropertyListCreateXMLData(alloc, plistMutableArray.get()));
211+
CFReleaser<CFDataRef> plistData(::CFPropertyListCreateData(
212+
alloc, plistMutableArray.get(), kCFPropertyListXMLFormat_v1_0, 0, NULL));
213213

214214
// write plist to service port
215215
if (plistData.get() != NULL) {

0 commit comments

Comments
 (0)