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.

llvm-svn: 227552
This commit is contained in:
Jason Molenda 2015-01-30 02:28:06 +00:00
parent 9ee161ea13
commit ab223c1ec8
1 changed files with 1 additions and 1 deletions

View 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);