[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/D100384 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
This commit is contained in:
1 parent
b9b696bba6
commit
312b43da05
13 files changed
+544
-11
No files matched your search
@@ -30,6 +30,10 @@ public:
|
||||
|
||||
Status Resume() override;
|
||||
|
||||
bool ShouldStop() override;
|
||||
|
||||
Status Stop() override;
|
||||
|
||||
lldb::MemoryRegionInfoSP
|
||||
GetMemoryRegionContainingAddress(lldb::addr_t address) override;
|
||||
|
||||
@@ -48,7 +52,7 @@ public:
|
||||
|
||||
protected:
|
||||
size_t GetGenericInteger(llvm::StringRef method_name);
|
||||
Status LaunchOrResume(llvm::StringRef method_name);
|
||||
Status GetStatusFromMethod(llvm::StringRef method_name);
|
||||
|
||||
private:
|
||||
// The lifetime is managed by the ScriptInterpreter
|
||||
|
||||
Reference in new issue
Block a user