[Lldb-commits] [lldb] 7075f9d - Have GetKernelsAndKextsInDirectoryHelper request follow symlinks

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 27 16:18:14 PDT 2023


Author: Jason Molenda
Date: 2023-06-27T16:18:08-07:00
New Revision: 7075f9d926c93efefacb72caf17e93ae00b3703b

URL: https://github.com/llvm/llvm-project/commit/7075f9d926c93efefacb72caf17e93ae00b3703b
DIFF: https://github.com/llvm/llvm-project/commit/7075f9d926c93efefacb72caf17e93ae00b3703b.diff

LOG: Have GetKernelsAndKextsInDirectoryHelper request follow symlinks

While working on the broken-symlinks issue, I noticed this one place
where I was setting `find_other` to false unintentionally in the
darwin kernel platform kext/kernel scan.  Small fix while I'm here.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
index dd2ec906cd007..4527e3568d362 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
@@ -534,7 +534,7 @@ PlatformDarwinKernel::GetKernelsAndKextsInDirectoryHelper(
         if (!search_here_too.empty()) {
           const bool find_directories = true;
           const bool find_files = false;
-          const bool find_other = false;
+          const bool find_other = true;
           FileSystem::Instance().EnumerateDirectory(
               search_here_too.c_str(), find_directories, find_files, find_other,
               recurse ? GetKernelsAndKextsInDirectoryWithRecursion


        


More information about the lldb-commits mailing list