diff options
author | Greg Clayton <gclayton@apple.com> | 2013-05-22 21:00:49 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-05-22 21:00:49 +0000 |
commit | a1b5dd9a2012398d9189ce3f397f9c48047776ef (patch) | |
tree | 6ac7ed68341c87702d000a0e93d3468e88998013 /lldb/source/Plugins/DynamicLoader | |
parent | 9b703f9c5d85d9ebe78bf4ac09c246bde7cb9588 (diff) | |
download | bcm5719-llvm-a1b5dd9a2012398d9189ce3f397f9c48047776ef.tar.gz bcm5719-llvm-a1b5dd9a2012398d9189ce3f397f9c48047776ef.zip |
<rdar://problem/13956179>
Fixed ProcessMachCore to be able to locate the main executeable in the core file even if it doesn't start at a core file address range boundary. Prior to this we only checked the first bytes of each range in the core file for mach_kernel or dyld. Now we still do this, but if we don't find the mach_kernel or dyld anywhere, we go through all core file ranges and check every 0x1000 to see if we can find dyld or the mach_kernel.
Now that we can properly detect the mach_kernel at any address, we don't need to call "DynamicLoaderDarwinKernel::SearchForDarwinKernel(Process*)" anymore.
llvm-svn: 182513
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
-rw-r--r-- | lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h index c34ac6562ab..8091710fb2d 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h @@ -52,9 +52,6 @@ public: DynamicLoaderDarwinKernel (lldb_private::Process *process, lldb::addr_t kernel_addr); - static lldb::addr_t - SearchForDarwinKernel (lldb_private::Process *process); - virtual ~DynamicLoaderDarwinKernel (); @@ -344,6 +341,9 @@ protected: KextImageInfo::collection &image_infos); static lldb::addr_t + SearchForDarwinKernel (lldb_private::Process *process); + + static lldb::addr_t SearchForKernelAtSameLoadAddr (lldb_private::Process *process); static lldb::addr_t |