[all-commits] [llvm/llvm-project] c4fa6f: [lldb][LocateModuleCallback] Update SBFileSpec/SBM...

Kazuki Sakamoto via All-commits all-commits at lists.llvm.org
Wed Jul 12 11:19:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4fa6fafc43ad5374a29d542737c0238b85516e4
      https://github.com/llvm/llvm-project/commit/c4fa6fafc43ad5374a29d542737c0238b85516e4
  Author: Kazuki Sakamoto <sakamoto at splhack.org>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

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

  Log Message:
  -----------
  [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




More information about the All-commits mailing list