Full core file support has been added for mach-o core files.
Tracking modules down when you have a UUID and a path has been improved.
DynamicLoaderDarwinKernel no longer parses mach-o load commands and it
now uses the memory based modules now that we can load modules from memory.
Added a target setting named "target.exec-search-paths" which can be used
to supply a list of directories to use when trying to look for executables.
This allows one or more directories to be used when searching for modules
that may not exist in the SDK/PDK. The target automatically adds the directory
for the main executable to this list so this should help us in tracking down
shared libraries and other binaries.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@150426 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBModule.cpp b/source/API/SBModule.cpp
index a1ec557..09f354e 100644
--- a/source/API/SBModule.cpp
+++ b/source/API/SBModule.cpp
@@ -46,7 +46,14 @@
{
ProcessSP process_sp (process.GetSP());
if (process_sp)
- m_opaque_sp = process_sp->ReadModuleFromMemory (FileSpec(), header_addr);
+ {
+ const bool add_image_to_target = true;
+ const bool load_image_sections_in_target = true;
+ m_opaque_sp = process_sp->ReadModuleFromMemory (FileSpec(),
+ header_addr,
+ add_image_to_target,
+ load_image_sections_in_target);
+ }
}
const SBModule &