[Lldb-commits] [PATCH] D153733: [lldb][TargetGetModuleCallback] Update SBFileSpec/SBModuleSpec

Kazuki Sakamoto via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Jun 25 18:14:57 PDT 2023


splhack created this revision.
Herald added a project: All.
splhack requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

RFC https://discourse.llvm.org/t/rfc-python-callback-for-target-get-module/71580

SBFileSpec and SBModuleSpec will be used for Target get module callback as
Python function arguments. This diff allows these things.

- Can be instantiated from lldb_private::python::SWIGBridge.
- Can be passed to/from Python.
- Can be accessed for object offset and size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153733

Files:
  lldb/bindings/python/python-swigsafecast.swig
  lldb/include/lldb/API/SBFileSpec.h
  lldb/include/lldb/API/SBModuleSpec.h
  lldb/source/API/SBModuleSpec.cpp
  lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
  lldb/test/API/python_api/module_spec/TestModuleSpec.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153733.534394.patch
Type: text/x-patch
Size: 5495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230626/cfb68fd4/attachment.bin>


More information about the lldb-commits mailing list