[Lldb-commits] [lldb] [lldb] Add a per-CU API to read the SDK (PR #119022)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 6 15:17:23 PST 2024


================
@@ -473,6 +473,32 @@ class Platform : public PluginInterface {
                       LLVM_PRETTY_FUNCTION, GetName()));
   }
 
+  /// Search CU for the SDK path the CUs was compiled against.
+  ///
+  /// \param[in] unit The CU
+  ///
+  /// \returns A parsed XcodeSDK object if successful, an Error otherwise. 
+  virtual llvm::Expected<XcodeSDK> GetSDKPathFromDebugInfo(CompileUnit &unit) {
----------------
clayborg wrote:

Can we abstract a base class for SDK and have XcodeSDK become a plug-in? 

https://github.com/llvm/llvm-project/pull/119022


More information about the lldb-commits mailing list