From 61a8e53bf3d78c7733b5a7ba772c9b7199d0d5cb Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 30 Nov 2016 23:00:52 +0000 Subject: [PATCH] Add another address to look for the kernel load addr in DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints on 32-bit devices. llvm-svn: 288284 --- .../Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index bc58d2a..b701030 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -244,7 +244,9 @@ DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints(Process *process) { 0xffffff8000004010ULL, // 2014-2015-ish arm64 devices 0xffffff8000002010ULL, // oldest arm64 devices LLDB_INVALID_ADDRESS}; - addr_t kernel_addresses_32[] = {0xffff0110, LLDB_INVALID_ADDRESS}; + addr_t kernel_addresses_32[] = {0xffff0110, // 2016 and earlier armv7 devices + 0xffff1010, + LLDB_INVALID_ADDRESS}; uint8_t uval[8]; if (process->GetAddressByteSize() == 8) { -- 2.7.4