From c859e2d52488ef1852e6489716ddf6147402ea64 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 13 Feb 2012 23:10:39 +0000 Subject: 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. llvm-svn: 150426 --- lldb/source/API/SBModule.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lldb/source/API/SBModule.cpp') diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp index a1ec5574b744..09f354e27106 100644 --- a/lldb/source/API/SBModule.cpp +++ b/lldb/source/API/SBModule.cpp @@ -46,7 +46,14 @@ SBModule::SBModule (lldb::SBProcess &process, lldb::addr_t header_addr) : { 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 & -- cgit v1.2.3