[Lldb-commits] [lldb] [LLDB] Add module hook implementation (PR #185465)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 7 16:05:22 PDT 2026
================
@@ -1640,6 +1640,193 @@ class Target : public std::enable_shared_from_this<Target>,
typedef std::shared_ptr<StopHook> StopHookSP;
+ // Target Hooks
+ //
+ // Hooks fire on target lifecycle events. There are two flows:
+ //
+ // Command-based hooks: the user specifies which triggers the hook responds
+ // to (--on-load, --on-unload, --on-stop) and provides a list of commands.
+ // All commands run for every trigger the hook is signed up for.
+ //
+ // Python class hooks: the user provides a Python class name and optional
+ // extra_args (-k key -v value). The class controls which events it
----------------
jimingham wrote:
extra_args -> extra_args that will be passed to the hook init method
maybe?
https://github.com/llvm/llvm-project/pull/185465
More information about the lldb-commits
mailing list