summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2014-09-19 21:56:45 +0000
committerJim Ingham <jingham@apple.com>2014-09-19 21:56:45 +0000
commit03d1730aada12ec5d5245a8ac3810083af290847 (patch)
tree8a8af004a51577e48e773b46f4425544aed2c42a
parenta6b7178b9d774c66c07d73d3410cde8b20d35940 (diff)
downloadbcm5719-llvm-03d1730aada12ec5d5245a8ac3810083af290847.tar.gz
bcm5719-llvm-03d1730aada12ec5d5245a8ac3810083af290847.zip
We had to squirrel away the dyld module before doing ResolveExecutableModule, since
that would clear the module list, and then put it back by hand. But we forgot to also put its sections back in the target SectionList, so we would jettison it as unloaded when we finished handling the first real load event. Add its sections. <rdar://problem/18385947> llvm-svn: 218156
-rw-r--r--lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
index 164de3e5840..c5db15b4908 100644
--- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
@@ -1350,7 +1350,13 @@ DynamicLoaderMacOSXDYLD::UpdateImageInfosHeaderAndLoadCommands(DYLDImageInfo::co
get_dependent_images);
if (dyld_module_sp)
- target.GetImages().AppendIfNeeded (dyld_module_sp);
+ {
+ if(target.GetImages().AppendIfNeeded (dyld_module_sp))
+ {
+ // Also add it to the section list.
+ UpdateImageLoadAddress(dyld_module_sp.get(), m_dyld);
+ }
+ }
}
}
}
OpenPOWER on IntegriCloud