[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:
1 parent
4858fe04a1
commit
1b86344fa8
5 files changed
+9
-12
No files matched your search
@@ -165,12 +165,8 @@ ScriptedProcessPythonInterface::GetScriptedThreadPluginName() {
|
||||
}
|
||||
|
||||
lldb::ScriptedThreadInterfaceSP
|
||||
ScriptedProcessPythonInterface::GetScriptedThreadInterface() {
|
||||
if (!m_scripted_thread_interface_sp)
|
||||
m_scripted_thread_interface_sp =
|
||||
std::make_shared<ScriptedThreadPythonInterface>(m_interpreter);
|
||||
|
||||
return m_scripted_thread_interface_sp;
|
||||
ScriptedProcessPythonInterface::CreateScriptedThreadInterface() {
|
||||
return std::make_shared<ScriptedThreadPythonInterface>(m_interpreter);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user