[Lldb-commits] [PATCH] D135983: [lldb] Fix a -Wdeprecated-declarations warning

Nico Weber via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 14 12:26:10 PDT 2022


thakis created this revision.
thakis added a reviewer: JDevlieghere.
Herald added a project: All.
thakis requested review of this revision.

Fixes:

  ../../lldb/source/Symbol/LocateSymbolFileMacOSX.cpp:633:26:
      warning: 'CFPropertyListCreateFromXMLData' is deprecated:
               first deprecated in macOS 10.10 -
               Use CFPropertyListCreateWithData instead.
               [-Wdeprecated-declarations]
      (CFDictionaryRef)::CFPropertyListCreateFromXMLData(
                         ^

Hopefully no behavior change.


https://reviews.llvm.org/D135983

Files:
  lldb/source/Symbol/LocateSymbolFileMacOSX.cpp


Index: lldb/source/Symbol/LocateSymbolFileMacOSX.cpp
===================================================================
--- lldb/source/Symbol/LocateSymbolFileMacOSX.cpp
+++ lldb/source/Symbol/LocateSymbolFileMacOSX.cpp
@@ -630,8 +630,8 @@
                                   command_output.size(), kCFAllocatorNull));
 
   CFCReleaser<CFDictionaryRef> plist(
-      (CFDictionaryRef)::CFPropertyListCreateFromXMLData(
-          NULL, data.get(), kCFPropertyListImmutable, NULL));
+      (CFDictionaryRef)::CFPropertyListCreateWithData(
+          NULL, data.get(), kCFPropertyListImmutable, NULL, NULL));
 
   if (!plist.get()) {
     LLDB_LOGF(log, "'%s' failed: output is not a valid plist",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135983.467884.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221014/73cfa57f/attachment.bin>


More information about the lldb-commits mailing list