diff options
author | Jim Ingham <jingham@apple.com> | 2012-12-22 01:52:32 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-12-22 01:52:32 +0000 |
commit | 6200471a70d5c7ac3c0e2ca51fefe40bab653142 (patch) | |
tree | 08ec2e07c7bb137441864c4390a2dd992dddd67b /lldb | |
parent | 6cae9ec64334a7401531f5216500c9b80f4698a2 (diff) | |
download | bcm5719-llvm-6200471a70d5c7ac3c0e2ca51fefe40bab653142.tar.gz bcm5719-llvm-6200471a70d5c7ac3c0e2ca51fefe40bab653142.zip |
Remember to tell the target about dyld when we resolve the address for it.
llvm-svn: 170975
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp index 758798480eb..22cc1d56d86 100644 --- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp @@ -415,9 +415,16 @@ DynamicLoaderMacOSXDYLD::ReadDYLDInfoFromMemoryAndSetNotificationCallback(lldb:: // it again (since Target::SetExecutableModule() will clear the // images). So append the dyld module back to the list if it is /// unique! - if (dyld_module_sp && m_process->GetTarget().GetImages().AppendIfNeeded (dyld_module_sp)) - UpdateImageLoadAddress(dyld_module_sp.get(), m_dyld); + if (dyld_module_sp) + { + if (m_process->GetTarget().GetImages().AppendIfNeeded (dyld_module_sp)) + UpdateImageLoadAddress(dyld_module_sp.get(), m_dyld); + // At this point we should have read in dyld's module, and so we should set breakpoints in it: + ModuleList modules; + modules.Append(dyld_module_sp); + m_process->GetTarget().ModulesDidLoad(modules); + } return true; } } |