aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2020-09-22 15:55:18 -0700
committerJim Ingham <jingham@apple.com>2020-09-25 15:44:55 -0700
commitb65966cff65bfb66de59621347ffd97238d3f645 (patch)
tree76a5b44e36b0572416693f457030b4ba4eddee90 /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
parent58cdbf518b6ebaee59d0492375e2e8f7da87ca41 (diff)
downloadllvm-b65966cff65bfb66de59621347ffd97238d3f645.zip
llvm-b65966cff65bfb66de59621347ffd97238d3f645.tar.gz
llvm-b65966cff65bfb66de59621347ffd97238d3f645.tar.bz2
Add the ability to write target stop-hooks using the ScriptInterpreter.
Differential Revision: https://reviews.llvm.org/D88123
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;
+}