aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings/python
diff options
context:
space:
mode:
authorMed Ismail Bennani <ismail@bennani.ma>2023-10-23 15:42:59 -0700
committerMed Ismail Bennani <ismail@bennani.ma>2023-10-26 15:12:22 -0700
commitec456ba9ca0a097da63daafbb031cb2024f5513a (patch)
tree68ec4f819792e9d08d27f3761ddcef63920bbd85 /lldb/bindings/python
parent7a1e8783586ecc90ee15f12c7b76799313bb32e8 (diff)
downloadllvm-ec456ba9ca0a097da63daafbb031cb2024f5513a.tar.gz
llvm-ec456ba9ca0a097da63daafbb031cb2024f5513a.tar.bz2
llvm-ec456ba9ca0a097da63daafbb031cb2024f5513a.zip
[lldb] Add OperatingSystem base class to the lldb python module
This patch introduces an `OperatingSystem` base implementation in the `lldb` python module to make it easier for lldb users to write their own implementation. The `OperatingSystem` base implementation is derived itself from the `ScriptedThread` base implementation since they share some common grounds. To achieve that, this patch makes changes to the `ScriptedThread` initializer since it gets called by the `OperatingSystem` initializer. I also took the opportunity to document the `OperatingSystem` base class and methods. Differential Revision: https://reviews.llvm.org/D159315 Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
Diffstat (limited to 'lldb/bindings/python')
-rw-r--r--lldb/bindings/python/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/bindings/python/CMakeLists.txt b/lldb/bindings/python/CMakeLists.txt
index c4806bda2704..c941f764dfc9 100644
--- a/lldb/bindings/python/CMakeLists.txt
+++ b/lldb/bindings/python/CMakeLists.txt
@@ -104,7 +104,8 @@ function(finish_swig_python swig_target lldb_python_bindings_dir lldb_python_tar
"plugins"
FILES
"${LLDB_SOURCE_DIR}/examples/python/templates/scripted_process.py"
- "${LLDB_SOURCE_DIR}/examples/python/templates/scripted_platform.py")
+ "${LLDB_SOURCE_DIR}/examples/python/templates/scripted_platform.py"
+ "${LLDB_SOURCE_DIR}/examples/python/templates/operating_system.py")
if(APPLE)
create_python_package(