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;
     }
 


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to