[Lldb-commits] [lldb] r227552 - Small tweak to the name of kernel binaries that we look

Jason Molenda jmolenda at apple.com
Thu Jan 29 18:28:06 PST 2015


Author: jmolenda
Date: Thu Jan 29 20:28:06 2015
New Revision: 227552

URL: http://llvm.org/viewvc/llvm-project?rev=227552&view=rev
Log:
Small tweak to the name of kernel binaries that we look
for; match files starting with "mach", not "mach." so
the old common name mach_kernel will still be matched.

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=227552&r1=227551&r2=227552&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp Thu Jan 29 20:28:06 2015
@@ -744,7 +744,7 @@ PlatformDarwinKernel::GetKernelsInDirect
     {
         ConstString filename = file_spec.GetFilename();
         if (strncmp (filename.GetCString(), "kernel", 6) == 0
-            || strncmp (filename.GetCString(), "mach.", 5) == 0)
+            || strncmp (filename.GetCString(), "mach", 4) == 0)
         {
             // This is m_kernel_binaries but we're in a class method here
             ((std::vector<lldb_private::FileSpec> *)baton)->push_back(file_spec);





More information about the lldb-commits mailing list