diff options
Diffstat (limited to 'lldb/source/Target')
| -rw-r--r-- | lldb/source/Target/JITLoaderList.cpp | 8 | ||||
| -rw-r--r-- | lldb/source/Target/Process.cpp | 17 | ||||
| -rw-r--r-- | lldb/source/Target/Target.cpp | 6 |
3 files changed, 23 insertions, 8 deletions
diff --git a/lldb/source/Target/JITLoaderList.cpp b/lldb/source/Target/JITLoaderList.cpp index a3b24c4bbfa..24a73b7fd51 100644 --- a/lldb/source/Target/JITLoaderList.cpp +++ b/lldb/source/Target/JITLoaderList.cpp @@ -67,3 +67,11 @@ JITLoaderList::DidAttach() for (auto const &jit_loader : m_jit_loaders_vec) jit_loader->DidAttach(); } + +void +JITLoaderList::ModulesDidLoad(ModuleList &module_list) +{ + Mutex::Locker locker(m_jit_loaders_mutex); + for (auto const &jit_loader : m_jit_loaders_vec) + jit_loader->ModulesDidLoad(module_list); +} diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index 1bf21e8c570..f9088252111 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -3068,7 +3068,7 @@ Process::Launch (ProcessLaunchInfo &launch_info) if (dyld) dyld->DidLaunch(); - // GetJITLoaders().DidLaunch(); + GetJITLoaders().DidLaunch(); SystemRuntime *system_runtime = GetSystemRuntime (); if (system_runtime) @@ -3117,7 +3117,7 @@ Process::LoadCore () if (dyld) dyld->DidAttach(); - //GetJITLoaders().DidAttach(); + GetJITLoaders().DidAttach(); SystemRuntime *system_runtime = GetSystemRuntime (); if (system_runtime) @@ -3396,7 +3396,7 @@ Process::CompleteAttach () if (dyld) dyld->DidAttach(); - // GetJITLoaders().DidAttach(); + GetJITLoaders().DidAttach(); SystemRuntime *system_runtime = GetSystemRuntime (); if (system_runtime) @@ -6052,3 +6052,14 @@ Process::ResolveIndirectFunction(const Address *address, Error &error) return function_addr; } +void +Process::ModulesDidLoad (ModuleList &module_list) +{ + SystemRuntime *sys_runtime = GetSystemRuntime(); + if (sys_runtime) + { + sys_runtime->ModulesDidLoad (module_list); + } + + GetJITLoaders().ModulesDidLoad (module_list); +} diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 62357419b14..d759801ae98 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -1172,11 +1172,7 @@ Target::ModulesDidLoad (ModuleList &module_list) m_breakpoint_list.UpdateBreakpoints (module_list, true, false); if (m_process_sp) { - SystemRuntime *sys_runtime = m_process_sp->GetSystemRuntime(); - if (sys_runtime) - { - sys_runtime->ModulesDidLoad (module_list); - } + m_process_sp->ModulesDidLoad (module_list); } // TODO: make event data that packages up the module_list BroadcastEvent (eBroadcastBitModulesLoaded, NULL); |

