The stop hooks and hooks that a module's __lldb_module_added_to_target adds for this target, collected while it runs, so we can run the ones added with –at-initial-stop once it returns.
More...
The stop hooks and hooks that a module's __lldb_module_added_to_target adds for this target, collected while it runs, so we can run the ones added with –at-initial-stop once it returns.
One ModulesDidLoad call loads its modules' scripts one at a time, on the calling thread, after reading their symbols in parallel. But the dynamic loader on the private state thread and an SB API client, for example with SBTarget::AddModule, can each load scripts for this target at the same time, so the mutex guards the rest. We only hold it to update these fields, never while calling out.
Definition at line 2280 of file Target.h.