summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 22fb0293b8c..fa518d30aec 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -326,6 +326,8 @@ DynamicLoaderDarwinKernel::SearchForKernelNearPC (Process *process)
return addr + 0x1000;
if (CheckForKernelImageAtAddress (addr + 0x2000, process).IsValid())
return addr + 0x2000;
+ if (CheckForKernelImageAtAddress (addr + 0x4000, process).IsValid())
+ return addr + 0x4000;
i++;
addr -= 0x100000;
}
@@ -376,6 +378,8 @@ DynamicLoaderDarwinKernel::SearchForKernelViaExhaustiveSearch (Process *process)
return addr + 0x1000;
if (CheckForKernelImageAtAddress (addr + 0x2000, process).IsValid())
return addr + 0x2000;
+ if (CheckForKernelImageAtAddress (addr + 0x4000, process).IsValid())
+ return addr + 0x4000;
addr += 0x100000;
}
return LLDB_INVALID_ADDRESS;
OpenPOWER on IntegriCloud