[lldb] Remove finding .Bundle directories in PlatformDarwinKernel
authorAlex Langford <alangford@apple.com>
Wed, 26 Apr 2023 17:54:02 +0000 (10:54 -0700)
committerAlex Langford <alangford@apple.com>
Wed, 26 Apr 2023 21:53:55 +0000 (14:53 -0700)
Jason isn't sure what this is used for and isn't aware of a .Bundle
suffix related to kernel debugging. Let's remove it.

Differential Revision: https://reviews.llvm.org/D149284

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

index 5d81b7c..784381a 100644 (file)
@@ -482,7 +482,6 @@ PlatformDarwinKernel::GetKernelsAndKextsInDirectoryHelper(
     bool recurse) {
   static ConstString g_kext_suffix = ConstString(".kext");
   static ConstString g_dsym_suffix = ConstString(".dSYM");
-  static ConstString g_bundle_suffix = ConstString("Bundle");
 
   FileSpec file_spec(path);
   ConstString file_spec_extension = file_spec.GetFileNameExtension();
@@ -567,8 +566,7 @@ PlatformDarwinKernel::GetKernelsAndKextsInDirectoryHelper(
 
   // Don't recurse into dSYM/kext/bundle directories
   if (recurse && file_spec_extension != g_dsym_suffix &&
-      file_spec_extension != g_kext_suffix &&
-      file_spec_extension != g_bundle_suffix) {
+      file_spec_extension != g_kext_suffix) {
     LLDB_LOGV(log, "PlatformDarwinKernel descending into directory '{0}'",
               file_spec);
     return FileSystem::eEnumerateDirectoryResultEnter;