From 33d6bd1c667456f7f4a9d338a7996a30a3af50a3 Mon Sep 17 00:00:00 2001 From: Alex Langford Date: Wed, 26 Apr 2023 10:54:02 -0700 Subject: [PATCH] [lldb] Remove finding .Bundle directories in PlatformDarwinKernel 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp index 5d81b7c..784381a 100644 --- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp +++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp @@ -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; -- 2.7.4