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

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Fri Dec 6 15:29:07 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) {
----------------
adrian-prantl wrote:

I'd volunteer to do that work if we had another platform that also has a concept of an SDK. Otherwise it'd be dangerous that I design the base class to be way too close to Xcode's SDK properties.

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


More information about the lldb-commits mailing list