summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-01-30 22:19:51 +0000
committerJason Molenda <jmolenda@apple.com>2013-01-30 22:19:51 +0000
commita46db7728e4b90b46bd68008e2068825901fcfab (patch)
tree78ea6174e39d2d2f6f69ea5e1e583a7c809a6b09 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
parentc40b0fab068366daf35ac1507af01319783e9234 (diff)
downloadbcm5719-llvm-a46db7728e4b90b46bd68008e2068825901fcfab.tar.gz
bcm5719-llvm-a46db7728e4b90b46bd68008e2068825901fcfab.zip
Verified that the plugin.dynamic-loader.darwin-kernel.scan-type
setting is working correctly now; remove the #if 0's around its use. llvm-svn: 173982
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 3fc104b2b0e..ab310f80382 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -239,10 +239,8 @@ DynamicLoaderDarwinKernel::SearchForKernelAtSameLoadAddr (Process *process)
lldb::addr_t
DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints (Process *process)
{
-#if 0
if (GetGlobalProperties()->GetScanType() == eKASLRScanNone)
return LLDB_INVALID_ADDRESS;
-#endif
Error read_err;
addr_t addr = LLDB_INVALID_ADDRESS;
@@ -276,13 +274,11 @@ DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints (Process *process)
lldb::addr_t
DynamicLoaderDarwinKernel::SearchForKernelNearPC (Process *process)
{
-#if 0
if (GetGlobalProperties()->GetScanType() == eKASLRScanNone
|| GetGlobalProperties()->GetScanType() == eKASLRScanLowgloAddresses)
{
return LLDB_INVALID_ADDRESS;
}
-#endif
ThreadSP thread = process->GetThreadList().GetSelectedThread ();
if (thread.get() == NULL)
@@ -339,12 +335,10 @@ DynamicLoaderDarwinKernel::SearchForKernelNearPC (Process *process)
lldb::addr_t
DynamicLoaderDarwinKernel::SearchForKernelViaExhaustiveSearch (Process *process)
{
-#if 0
if (GetGlobalProperties()->GetScanType() != eKASLRScanExhaustiveScan)
{
return LLDB_INVALID_ADDRESS;
}
-#endif
addr_t kernel_range_low, kernel_range_high;
if (process->GetTarget().GetArchitecture().GetAddressByteSize() == 8)
OpenPOWER on IntegriCloud