[lldb/Plugins] Move ScriptedThreadInterface to ScriptedThread

Since we can have multiple Scripted Threads per Scripted Process, having
only a single ScriptedThreadInterface (with a single object instance)
will cause the method calls to be done on the wrong object.

Instead, this patch creates a separate ScriptedThreadInterface for each
new lldb_private::ScriptedThread to make sure we interact with the right
instance.

rdar://87427911

Differential Revision: https://reviews.llvm.org/D117070

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
Med Ismail Bennani committed 2022-01-24 20:25:53 +01:00
1 parent 4858fe04a1
commit 1b86344fa8
5 files changed
+9 -12

No files matched your search

@@ -57,7 +57,7 @@ public:
llvm::Optional<std::string> GetScriptedThreadPluginName() override;
private:
lldb::ScriptedThreadInterfaceSP GetScriptedThreadInterface() override;
lldb::ScriptedThreadInterfaceSP CreateScriptedThreadInterface() override;
};
} // namespace lldb_private