From 738621d047f2c14482509b39f8307967a91e7586 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Tue, 19 Oct 2021 23:30:22 +0000 Subject: [lldb/bindings] Change ScriptedThread initializer parameters This patch changes the `ScriptedThread` initializer in couple of ways: - It replaces the `SBTarget` parameter by a `SBProcess` (pointing to the `ScriptedProcess` that "owns" the `ScriptedThread`). - It adds a reference to the `ScriptedProcessInfo` Dictionary, to pass arbitrary user-input to the `ScriptedThread`. This patch also fixes the SWIG bindings methods that call the `ScriptedProcess` and `ScriptedThread` initializers by passing all the arguments to the appropriate `PythonCallable` object. Differential Revision: https://reviews.llvm.org/D112046 Signed-off-by: Med Ismail Bennani --- lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h b/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h index 81e2512..798d947 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h @@ -48,7 +48,8 @@ extern "C" void *LLDBSwigPythonCreateScriptedProcess( extern "C" void *LLDBSwigPythonCreateScriptedThread( const char *python_class_name, const char *session_dictionary_name, - const lldb::TargetSP &target_sp, std::string &error_string); + const lldb::ProcessSP &process_sp, StructuredDataImpl *args_impl, + std::string &error_string); extern "C" void *LLDBSWIGPython_CastPyObjectToSBData(void *data); extern "C" void *LLDBSWIGPython_CastPyObjectToSBError(void *data); -- cgit v1.1