[Lldb-commits] [lldb] [lldb] Search for a kernel's kexts before loading any of them (PR #231211)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 13 16:53:11 PDT 2026
================
@@ -728,12 +730,25 @@ void DynamicLoaderDarwinKernel::KextImageInfo::SetIsKernel(bool is_kernel) {
m_kernel_image = is_kernel;
}
-bool DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule(
- Process *process, Progress *progress) {
- Log *log = GetLog(LLDBLog::DynamicLoader);
- if (IsLoaded())
- return true;
+static std::string GetProgressDetail(llvm::StringRef name, const UUID &uuid,
+ addr_t load_address) {
+ StreamString prog_str;
+ // 'mach_kernel' is a fake name we make up to find kernels
+ // that were located by the local filesystem scan.
+ if (name != "mach_kernel")
----------------
jasonmolenda wrote:
hm, I'm thinking that this function might only be called for kexts, actually. so I don't think it matters.
https://github.com/llvm/llvm-project/pull/231211
More information about the lldb-commits
mailing list