diff options
author | Jason Molenda <jmolenda@apple.com> | 2016-07-28 04:18:44 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2016-07-28 04:18:44 +0000 |
commit | a8cb765cf45b6bdf8a76828c7882cecf2d3d5034 (patch) | |
tree | 7ffc38e0b18b615c8077202c5e035e376295b5d3 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | |
parent | 6e9b47bc8a52bc6a42fede54d385804700218f25 (diff) | |
download | bcm5719-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.cpp | 3 |
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; } |