LLDB mainline
lldb_private::Target::ModuleLoadedScriptHooks Struct Reference

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...

#include <Target.h>

Public Attributes

std::mutex mutex
bool collecting = false
std::vector< StopHookSP > stop_hooks
std::vector< HookSP > hooks

Detailed Description

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.

Member Data Documentation

◆ collecting

bool lldb_private::Target::ModuleLoadedScriptHooks::collecting = false

Definition at line 2282 of file Target.h.

◆ hooks

std::vector<HookSP> lldb_private::Target::ModuleLoadedScriptHooks::hooks

Definition at line 2284 of file Target.h.

◆ mutex

std::mutex lldb_private::Target::ModuleLoadedScriptHooks::mutex
mutable

Definition at line 2281 of file Target.h.

◆ stop_hooks

std::vector<StopHookSP> lldb_private::Target::ModuleLoadedScriptHooks::stop_hooks

Definition at line 2283 of file Target.h.


The documentation for this struct was generated from the following file: