[Lldb-commits] [lldb] r179058 - Update PlatformDarwinKernel::GetMacDirectoriesToSearch to also try

Jason Molenda jmolenda at apple.com
Mon Apr 8 14:24:40 PDT 2013


Author: jmolenda
Date: Mon Apr  8 16:24:40 2013
New Revision: 179058

URL: http://llvm.org/viewvc/llvm-project?rev=179058&view=rev
Log:
Update PlatformDarwinKernel::GetMacDirectoriesToSearch to also try
/Volumes/KernelDebugKit (the default mount point for the Kernel Debug
Kit dmgs).

Modified:
    lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp

Modified: lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp?rev=179058&r1=179057&r2=179058&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp Mon Apr  8 16:24:40 2013
@@ -393,6 +393,12 @@ PlatformDarwinKernel::GetMacDirectoriesT
     {
         directories.push_back(sle);
     }
+
+    FileSpec kdk("/Volumes/KernelDebugKit", true);
+    if (kdk.Exists() && kdk.GetFileType() == FileSpec::eFileTypeDirectory)
+    {
+        directories.push_back(kdk);
+    }
 }
 
 void





More information about the lldb-commits mailing list