From c4fa6fafc43ad5374a29d542737c0238b85516e4 Mon Sep 17 00:00:00 2001 From: Kazuki Sakamoto Date: Sun, 18 Jun 2023 22:05:54 -0700 Subject: [lldb][LocateModuleCallback] Update SBFileSpec/SBModuleSpec RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580 SBFileSpec and SBModuleSpec will be used for locate module callback as Python function arguments. This diff allows these things. - Can be instantiated from SBPlatform. - Can be passed to/from Python. - Can be accessed for object offset and size. Differential Revision: https://reviews.llvm.org/D153733 --- lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | 6 ++++++ 1 file changed, 6 insertions(+) (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 1d8ed87..630ab29 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h @@ -30,6 +30,8 @@ class SBCommandReturnObject; class SBValue; class SBStream; class SBStructuredData; +class SBFileSpec; +class SBModuleSpec; } // namespace lldb namespace lldb_private { @@ -102,6 +104,10 @@ public: static PythonObject ToSWIGWrapper(std::unique_ptr stream_sb); static PythonObject ToSWIGWrapper(std::unique_ptr data_sb); + static PythonObject + ToSWIGWrapper(std::unique_ptr file_spec_sb); + static PythonObject + ToSWIGWrapper(std::unique_ptr module_spec_sb); static python::ScopedPythonObject ToSWIGWrapper(CommandReturnObject &cmd_retobj); -- cgit v1.1