summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2016-07-28 04:18:44 +0000
committerJason Molenda <jmolenda@apple.com>2016-07-28 04:18:44 +0000
commita8cb765cf45b6bdf8a76828c7882cecf2d3d5034 (patch)
tree7ffc38e0b18b615c8077202c5e035e376295b5d3 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
parent6e9b47bc8a52bc6a42fede54d385804700218f25 (diff)
downloadbcm5719-llvm-a8cb765cf45b6bdf8a76828c7882cecf2d3d5034.tar.gz
bcm5719-llvm-a8cb765cf45b6bdf8a76828c7882cecf2d3d5034.zip
Add some logging to the kernel dynamicloader plugin when we fail to read
a kext binary from memory. <rdar://problem/26158095> llvm-svn: 276954
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 6fcec3d09f6..18c8602c41e 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -774,6 +774,9 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p
// have the correct segment load addresses.
if (!ReadMemoryModule (process))
{
+ Log *log(GetLogIfAnyCategoriesSet (LIBLLDB_LOG_DYNAMIC_LOADER));
+ if (log)
+ log->Printf("Unable to read '%s' from memory at address 0x%" PRIx64 " to get the segment load addresses.", m_name.c_str(), m_load_address);
return false;
}
OpenPOWER on IntegriCloud