Small tweak to the name of kernel binaries that we look
authorJason Molenda <jmolenda@apple.com>
Fri, 30 Jan 2015 02:28:06 +0000 (02:28 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 30 Jan 2015 02:28:06 +0000 (02:28 +0000)
for; match files starting with "mach", not "mach." so
the old common name mach_kernel will still be matched.

llvm-svn: 227552

lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp

index 919c10f..a807c33 100644 (file)
@@ -744,7 +744,7 @@ PlatformDarwinKernel::GetKernelsInDirectory (void *baton,
     {
         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);