Skip to content

Commit

Permalink
[lldb] Use CFPropertyListCreateData in debugserver (NFC)
Browse files Browse the repository at this point in the history
CFPropertyListCreateXMLData has been deprecated since macOS 10.10. Use
CFPropertyListCreateData instead.
  • Loading branch information
JDevlieghere committed Oct 14, 2024
1 parent 53c9553 commit 325d131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/tools/debugserver/source/RNBServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 325d131

Please sign in to comment.