From b65966cff65bfb66de59621347ffd97238d3f645 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 22 Sep 2020 15:55:18 -0700 Subject: Add the ability to write target stop-hooks using the ScriptInterpreter. Differential Revision: https://reviews.llvm.org/D88123 --- .../unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | 14 ++++++++++++++ 1 file changed, 14 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 f661835..58ddf0c 100644 --- a/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp +++ b/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp @@ -254,3 +254,17 @@ LLDBSWIGPython_GetDynamicSetting(void *module, const char *setting, const lldb::TargetSP &target_sp) { return nullptr; } + +extern "C" void *LLDBSwigPythonCreateScriptedStopHook( + lldb::TargetSP target_sp, const char *python_class_name, + const char *session_dictionary_name, + lldb_private::StructuredDataImpl *args_impl, Status &error) { + return nullptr; +} + +extern "C" bool +LLDBSwigPythonStopHookCallHandleStop(void *implementor, + lldb::ExecutionContextRefSP exc_ctx_sp, + lldb::StreamSP stream) { + return false; +} -- cgit v1.1