Skip to content

Commit 9cc6e6f

Browse files
authored
[lldb] Use CFPropertyListCreateData in debugserver (NFC) (#112262)
CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use CFPropertyListCreateData instead.
1 parent d0b6709 commit 9cc6e6f

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)