aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2020-09-28 10:28:29 -0700
committerJim Ingham <jingham@apple.com>2020-09-29 12:01:14 -0700
commit1b1d9815987a753f2f3524cfad050b85972dae5b (patch)
treeed2bbf35bafd76b8ff1fd6103527a6c09a978f98 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
parent962a247aebba39bc8f2d6aa901ed512f5c09dc72 (diff)
downloadllvm-1b1d9815987a753f2f3524cfad050b85972dae5b.zip
llvm-1b1d9815987a753f2f3524cfad050b85972dae5b.tar.gz
llvm-1b1d9815987a753f2f3524cfad050b85972dae5b.tar.bz2
Revert "Revert "Add the ability to write target stop-hooks using the ScriptInterpreter.""
This reverts commit f775fe59640a2e837ad059a8f40e26989d4f9831. I fixed a return type error in the original patch that was causing a test failure. Also added a REQUIRES: python to the shell test so we'll skip this for people who build lldb w/o Python. Also added another test for the error printing.
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
-rw-r--r--lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp14
1 files changed, 14 insertions, 0 deletions
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;
+}