[Lldb-commits] [PATCH] D88123: Add the ability to write 'target stop-hooks' in Python
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 22 16:46:14 PDT 2020
jingham created this revision.
jingham added a reviewer: JDevlieghere.
Herald added subscribers: lldb-commits, dang.
Herald added a project: LLDB.
jingham requested review of this revision.
Previously, you could only have a list of command-line commands as the reaction to a stop hook.
This patch adds the ability to define the stop hooks directly in Python, which allows you to do logging and add logic to the stop hook more easily.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D88123
Files:
lldb/bindings/python/python-swigsafecast.swig
lldb/bindings/python/python-wrapper.swig
lldb/include/lldb/Interpreter/ScriptInterpreter.h
lldb/include/lldb/Symbol/SymbolContext.h
lldb/include/lldb/Target/Target.h
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Commands/Options.td
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
lldb/source/Symbol/SymbolContext.cpp
lldb/source/Target/Target.cpp
lldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
lldb/test/API/commands/target/stop-hooks/TestStopHooks.py
lldb/test/API/commands/target/stop-hooks/main.c
lldb/test/API/commands/target/stop-hooks/stop_hook.py
lldb/test/Shell/Commands/Inputs/stop_hook.py
lldb/test/Shell/Commands/command-stop-hook-output.test
lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88123.293591.patch
Type: text/x-patch
Size: 54080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200922/079c106d/attachment-0001.bin>
More information about the lldb-commits
mailing list