[Lldb-commits] [lldb] r276954 - Add some logging to the kernel dynamicloader plugin when we fail to read
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 27 21:18:44 PDT 2016
Author: jmolenda
Date: Wed Jul 27 23:18:44 2016
New Revision: 276954
URL: http://llvm.org/viewvc/llvm-project?rev=276954&view=rev
Log:
Add some logging to the kernel dynamicloader plugin when we fail to read
a kext binary from memory.
<rdar://problem/26158095>
Modified:
lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp?rev=276954&r1=276953&r2=276954&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Wed Jul 27 23:18:44 2016
@@ -774,6 +774,9 @@ DynamicLoaderDarwinKernel::KextImageInfo
// 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;
}
More information about the lldb-commits
mailing list