diff options
author | Andrew MacPherson <andrew.macp@gmail.com> | 2014-03-13 09:37:02 +0000 |
---|---|---|
committer | Andrew MacPherson <andrew.macp@gmail.com> | 2014-03-13 09:37:02 +0000 |
commit | eb4d0607bf5b61edbeab0cadd277bddfa9edb962 (patch) | |
tree | 919d9ea99fb97685322ed1f1356a3d6a4751180e /lldb/source/Target/Process.cpp | |
parent | 32956d651a1f1d9d01600a893bdcea74e05ad646 (diff) | |
download | bcm5719-llvm-eb4d0607bf5b61edbeab0cadd277bddfa9edb962.tar.gz bcm5719-llvm-eb4d0607bf5b61edbeab0cadd277bddfa9edb962.zip |
Create a Process::ModulesDidLoad() method to handle process-related tasks, as suggested by Jim Ingham. Make JITLoader instances use this to probe only new modules for relevant JIT symbols. Also re-enable the JITLoader hooks in Process.
llvm-svn: 203774
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
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); +} |