================
@@ -1003,6 +1010,21 @@ class Platform : public PluginInterface {
   FileSpec GetModuleCacheRoot();
 };
 
+class PlatformMetadata {
+public:
+  PlatformMetadata(Debugger &debugger, const ScriptedMetadata metadata);
+  ~PlatformMetadata() = default;
+
+  Debugger &GetDebugger() const { return m_debugger; }
+  const ScriptedMetadata GetScriptedMetadata() const {
+    return m_scripted_metadata;
+  }
+
+protected:
+  Debugger &m_debugger;
----------------
medismailben wrote:

Also discussed about that offline with @JDevlieghere and he suggested may be 
the scripted platforms should instantiate their own script interpreter so 
they're never dependent on a debugger. The issue with that is that now, the 
processes that will be create from the scripted platform will be restricted to 
use that script interpreter instead of using the target's debugger script 
interpreter. I'm not sure yet if this is desirable or even feasible but it's 
another lead we could take.

https://github.com/llvm/llvm-project/pull/99814
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to