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/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp') diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp index 12c104b24de..4a32e718e72 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp @@ -121,7 +121,8 @@ PlatformRemoteiOS::GetStatus (Stream &strm) Error PlatformRemoteiOS::ResolveExecutable (const FileSpec &exe_file, const ArchSpec &exe_arch, - lldb::ModuleSP &exe_module_sp) + lldb::ModuleSP &exe_module_sp, + const FileSpecList *module_search_paths_ptr) { Error error; // Nothing special to do here, just use the actual file and architecture @@ -148,6 +149,7 @@ PlatformRemoteiOS::ResolveExecutable (const FileSpec &exe_file, NULL, 0, exe_module_sp, + NULL, NULL, NULL); @@ -168,6 +170,7 @@ PlatformRemoteiOS::ResolveExecutable (const FileSpec &exe_file, NULL, 0, exe_module_sp, + NULL, NULL, NULL); // Did we find an executable using one of the @@ -429,6 +432,7 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_file, const ConstString *object_name_ptr, off_t object_offset, ModuleSP &module_sp, + const FileSpecList *module_search_paths_ptr, ModuleSP *old_module_sp_ptr, bool *did_create_ptr) { @@ -441,8 +445,7 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_file, error = GetFile (platform_file, uuid_ptr, local_file); if (error.Success()) { - - error = ResolveExecutable (local_file, arch, module_sp); + error = ResolveExecutable (local_file, arch, module_sp, module_search_paths_ptr); } else { @@ -453,6 +456,7 @@ PlatformRemoteiOS::GetSharedModule (const FileSpec &platform_file, object_name_ptr, object_offset, module_sp, + module_search_paths_ptr, old_module_sp_ptr, did_create_ptr, always_create); -- cgit v1.2.3