[all-commits] [llvm/llvm-project] 3370a8: [lldb] Add option to show internal stop hooks
Julian Lettner via All-commits
all-commits at lists.llvm.org
Thu Oct 23 16:32:03 PDT 2025
Branch: refs/heads/users/yln/lldb-internal-stop-hooks
Home: https://github.com/llvm/llvm-project
Commit: 3370a8243bc9bc9ced6f3bab2b0b1ef619c33329
https://github.com/llvm/llvm-project/commit/3370a8243bc9bc9ced6f3bab2b0b1ef619c33329
Author: Julian Lettner <jlettner at apple.com>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M lldb/include/lldb/Target/Target.h
M lldb/source/Commands/CommandObjectBreakpoint.cpp
M lldb/source/Commands/CommandObjectTarget.cpp
M lldb/source/Commands/Options.td
Log Message:
-----------
[lldb] Add option to show internal stop hooks
Add option to the existing "print list of stop
hooks" command to show the internal stop hooks
instead:
```
target stop-hook list --internal
```
Commit: 3d4ee47748842b076a47ebddb48e81ab9c520caa
https://github.com/llvm/llvm-project/commit/3d4ee47748842b076a47ebddb48e81ab9c520caa
Author: Julian Lettner <jlettner at apple.com>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M lldb/include/lldb/Target/Target.h
M lldb/source/Commands/CommandCompletions.cpp
M lldb/source/Commands/CommandObjectTarget.cpp
M lldb/source/Target/Target.cpp
Log Message:
-----------
[lldb] Unify printing of internal and user stop hooks
Unify the printing of internal and user
(non-internal) stop hooks to make it more similar
to how we treat it for breakpoints.
This means replacing the `GetNumStopHooks()` and
`GetStopHookAtIndex()` with a copy of the stop
hooks (in C++20, we can change this to a constant
view). These functions were ever only used to
iterate the entire collection of stop hooks and
the implementation of `GetStopHookAtIndex()` turns
this into a `N^2` operation.
This change also allows us to cleanup a bit of
code at the call site.
Compare: https://github.com/llvm/llvm-project/compare/eae847921bc5...3d4ee4774884
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list