[all-commits] [llvm/llvm-project] b09d44: [lldb/Plugins] Add ScriptedProcess Process Plugin

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Wed Mar 24 11:11:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b09d44b6ae0901865a0d4b2a0cf797c3cd34eeeb
      https://github.com/llvm/llvm-project/commit/b09d44b6ae0901865a0d4b2a0cf797c3cd34eeeb
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M lldb/bindings/python/CMakeLists.txt
    M lldb/include/lldb/Target/Process.h
    M lldb/source/Plugins/Process/CMakeLists.txt
    A lldb/source/Plugins/Process/scripted/CMakeLists.txt
    A lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
    A lldb/source/Plugins/Process/scripted/ScriptedProcess.h
    M lldb/source/Target/Target.cpp
    M lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py

  Log Message:
  -----------
  [lldb/Plugins] Add ScriptedProcess Process Plugin

This patch introduces Scripted Processes to lldb.

The goal, here, is to be able to attach in the debugger to fake processes
that are backed by script files (in Python, Lua, Swift, etc ...) and
inspect them statically.

Scripted Processes can be used in cooperative multithreading environments
like the XNU Kernel or other real-time operating systems, but it can
also help us improve the debugger testing infrastructure by writting
synthetic tests that simulates hard-to-reproduce process/thread states.

Although ScriptedProcess is not feature-complete at the moment, it has
basic execution capabilities and will improve in the following patches.

rdar://65508855

Differential Revision: https://reviews.llvm.org/D95713

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


  Commit: 13bb39aad347712b7d9b1dddcd142d066ac72d13
      https://github.com/llvm/llvm-project/commit/13bb39aad347712b7d9b1dddcd142d066ac72d13
  Author: Shafik Yaghmour <syaghmour at apple.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp

  Log Message:
  -----------
  [NFC][LLDB] Removing extra semicolons to silence -Wc++98-compat-extra-semi diagnostics


Compare: https://github.com/llvm/llvm-project/compare/1818dc394f31...13bb39aad347


More information about the All-commits mailing list