diff options
author | Jim Ingham <jingham@apple.com> | 2020-09-28 10:28:29 -0700 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2020-09-29 12:01:14 -0700 |
commit | 1b1d9815987a753f2f3524cfad050b85972dae5b (patch) | |
tree | ed2bbf35bafd76b8ff1fd6103527a6c09a978f98 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
parent | 962a247aebba39bc8f2d6aa901ed512f5c09dc72 (diff) | |
download | llvm-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/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h index 22b2c81..f89c3d4 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h @@ -106,6 +106,14 @@ public: StructuredData::GenericSP implementor_sp) override; StructuredData::GenericSP + CreateScriptedStopHook(lldb::TargetSP target_sp, const char *class_name, + StructuredDataImpl *args_data, Status &error) override; + + bool ScriptedStopHookHandleStop(StructuredData::GenericSP implementor_sp, + ExecutionContext &exc_ctx, + lldb::StreamSP stream_sp) override; + + StructuredData::GenericSP CreateFrameRecognizer(const char *class_name) override; lldb::ValueObjectListSP |