diff options
author | Med Ismail Bennani <ismail@bennani.ma> | 2023-10-26 14:58:03 -0700 |
---|---|---|
committer | Med Ismail Bennani <ismail@bennani.ma> | 2023-10-26 15:12:22 -0700 |
commit | 7a1e8783586ecc90ee15f12c7b76799313bb32e8 (patch) | |
tree | 9d214a8e4fb18066d0829928b0cff84bb378ec93 /lldb/unittests/ScriptInterpreter/Python | |
parent | d808d922b42b82ecb21a45e446d612e334d96488 (diff) | |
download | llvm-7a1e8783586ecc90ee15f12c7b76799313bb32e8.zip llvm-7a1e8783586ecc90ee15f12c7b76799313bb32e8.tar.gz llvm-7a1e8783586ecc90ee15f12c7b76799313bb32e8.tar.bz2 |
[lldb] Introduce OperatingSystem{,Python}Interface and make use it
This patch aims to consolidate the OperatingSystem scripting affordance
by introducing a stable interface that conforms to the
Scripted{,Python}Interface.
This unify the way we call into python methods from lldb while
also improving its capabilities by allowing us to pass lldb_private
objects are arguments.
Differential Revision: https://reviews.llvm.org/D159314
Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python')
-rw-r--r-- | lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index 9dd845f..7f3359f 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -320,6 +320,11 @@ lldb_private::python::SWIGBridge::ToSWIGWrapper(lldb::ExecutionContextRefSP) { } python::PythonObject -lldb_private::python::SWIGBridge::ToSWIGWrapper(const StructuredDataImpl &) { +lldb_private::python::SWIGBridge::ToSWIGWrapper(lldb::ProcessSP) { + return python::PythonObject(); +} + +python::PythonObject lldb_private::python::SWIGBridge::ToSWIGWrapper( + const lldb_private::StructuredDataImpl &) { return python::PythonObject(); } |