[Lldb-commits] [PATCH] D95712: [lldb/bindings] Add Python ScriptedProcess base class to lldb module

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 29 17:19:56 PST 2021


mib created this revision.
mib added reviewers: jasonmolenda, jingham, JDevlieghere, labath, LLDB.
mib added a project: LLDB.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.

In order to facilitate the writting of Scripted Processes, this patch
introduces a `ScriptedProcess` python base class in the lldb module.

The base class holds the python interface with all the - abstract -
methods that need to be implemented by the inherited class but also some
methods that can be overwritten.

This patch also provides an example of a Scripted Process with the
`ScriptedMachCoreProcess` class.

rdar://65508855

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95712

Files:
  lldb/bindings/python/python-scripted-process.swig
  lldb/bindings/python/python.swig
  lldb/examples/python/scripted_process.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95712.320245.patch
Type: text/x-patch
Size: 3723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210130/910a7761/attachment-0001.bin>


More information about the lldb-commits mailing list