summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2013-10-09 19:57:11 +0000
committerEd Maste <emaste@freebsd.org>2013-10-09 19:57:11 +0000
commit9715936d9e67c4078f7021b8bcc34051d6548977 (patch)
treebe44fc9037f61701f03da1efb8ebfeefd985e9a3 /lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
parent41f9f4a3c504b28dc3e4266566a33a01afc4f623 (diff)
downloadbcm5719-llvm-9715936d9e67c4078f7021b8bcc34051d6548977.tar.gz
bcm5719-llvm-9715936d9e67c4078f7021b8bcc34051d6548977.zip
Add logging for POSIX DYLD failures
llvm-svn: 192322
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
index 58008de135a..60d7c6fe902 100644
--- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
+++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
@@ -431,14 +431,30 @@ DynamicLoaderPOSIXDYLD::LoadAllCurrentModules()
ModuleList module_list;
if (!m_rendezvous.Resolve())
+ {
+ Log *log(GetLogIfAnyCategoriesSet(LIBLLDB_LOG_DYNAMIC_LOADER));
+ if (log)
+ log->Printf("DynamicLoaderPOSIXDYLD::%s unable to resolve POSIX DYLD rendezvous address",
+ __func__);
return;
+ }
for (I = m_rendezvous.begin(), E = m_rendezvous.end(); I != E; ++I)
{
- FileSpec file(I->path.c_str(), false);
+ const char *module_path = I->path.c_str();
+ FileSpec file(module_path, false);
ModuleSP module_sp = LoadModuleAtAddress(file, I->base_addr);
if (module_sp.get())
+ {
module_list.Append(module_sp);
+ }
+ else
+ {
+ Log *log(GetLogIfAnyCategoriesSet(LIBLLDB_LOG_DYNAMIC_LOADER));
+ if (log)
+ log->Printf("DynamicLoaderPOSIXDYLD::%s failed loading module %s at 0x%" PRIx64,
+ __func__, module_path, I->base_addr);
+ }
}
m_process->GetTarget().ModulesDidLoad(module_list);
OpenPOWER on IntegriCloud