diff options
author | Greg Clayton <gclayton@apple.com> | 2012-02-13 23:10:39 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-02-13 23:10:39 +0000 |
commit | c859e2d52488ef1852e6489716ddf6147402ea64 (patch) | |
tree | 5639f72ea58d93f18e65eb6fb71f76062fbba9e6 /lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | |
parent | 698452bc7e838e3a355029539d7f0be974d4d81d (diff) | |
download | bcm5719-llvm-c859e2d52488ef1852e6489716ddf6147402ea64.tar.gz bcm5719-llvm-c859e2d52488ef1852e6489716ddf6147402ea64.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp')
-rw-r--r-- | lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
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); |