From 59d8dd79e1f9dead2dc2756e139073083e487228 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Wed, 6 Oct 2021 00:09:20 +0000 Subject: [lldb/Plugins] Add support for ScriptedThread in ScriptedProcess This patch introduces the `ScriptedThread` class with its python interface. When used with `ScriptedProcess`, `ScriptedThreaad` can provide various information such as the thread state, stop reason or even its register context. This can be used to reconstruct the program stack frames using lldb's unwinder. rdar://74503836 Differential Revision: https://reviews.llvm.org/D107585 Signed-off-by: Med Ismail Bennani --- lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp') diff --git a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp index eb02ce2..e636b8c 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -223,6 +223,12 @@ extern "C" void *LLDBSwigPythonCreateScriptedProcess( return nullptr; } +extern "C" void *LLDBSwigPythonCreateScriptedThread( + const char *python_class_name, const char *session_dictionary_name, + const lldb::TargetSP &target_sp, std::string &error_string) { + return nullptr; +} + extern "C" void * LLDBSWIGPython_CreateFrameRecognizer(const char *python_class_name, const char *session_dictionary_name) { -- cgit v1.1