summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2016-07-26 03:10:15 +0000
committerJason Molenda <jmolenda@apple.com>2016-07-26 03:10:15 +0000
commit57086ed76ff3c54ab7d0744b23d4ed17982fabdc (patch)
tree21f4a548bfd6ed2402c8411e6e1c90f259f5dd76 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel
parent76681d6ab5f5ea86c9876ddd7196463c24b8a07f (diff)
downloadbcm5719-llvm-57086ed76ff3c54ab7d0744b23d4ed17982fabdc.tar.gz
bcm5719-llvm-57086ed76ff3c54ab7d0744b23d4ed17982fabdc.zip
DynamicLoaderDarwinKernel will look in four addresses for the kernel
load address on 64-bit devices; it only needs to look in three. <rdar://problem/27061405> llvm-svn: 276721
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 4021b44c96a..6fcec3d09f6 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -254,8 +254,9 @@ DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints (Process *process)
Error read_err;
addr_t addr = LLDB_INVALID_ADDRESS;
- addr_t kernel_addresses_64[] = { 0xffffff8000002010ULL, 0xffffff8000004010ULL,
- 0xfffffff000002010ULL, 0xfffffff000004010ULL,
+ addr_t kernel_addresses_64[] = { 0xfffffff000004010ULL, // newest arm64 devices
+ 0xffffff8000004010ULL, // 2014-2015-ish arm64 devices
+ 0xffffff8000002010ULL, // oldest arm64 devices
LLDB_INVALID_ADDRESS };
addr_t kernel_addresses_32[] = { 0xffff0110,
LLDB_INVALID_ADDRESS };
OpenPOWER on IntegriCloud