[Lldb-commits] [lldb] Fix a crash when a stop hook deletes itself in its callback. (PR #160416)

via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 6 11:21:27 PST 2025


jimingham wrote:

This dropped off my queue somehow.  In that time, in the process of adding support for internal stop hooks, the iteration over stop hooks was changed so that first we build a list of the "active stop hooks" and then only iterate over those when running the hooks.  That has the same effect as this patch of iterating over a copy, not over the ivar list, and thus always iterating over the whole set of hooks valid at the time we stopped.

https://github.com/llvm/llvm-project/pull/160416


More information about the lldb-commits mailing list