summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-01-30 04:48:16 +0000
committerJason Molenda <jmolenda@apple.com>2013-01-30 04:48:16 +0000
commit6396922186efe864e2ef2b6d8b3111d4e5430b40 (patch)
tree8cb17b7581f80f13bbaa305d4436acc0ae787dc5 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
parenta166574d817abf64b831dd065cfedcb523c2709a (diff)
downloadbcm5719-llvm-6396922186efe864e2ef2b6d8b3111d4e5430b40.tar.gz
bcm5719-llvm-6396922186efe864e2ef2b6d8b3111d4e5430b40.zip
Fix one obvious thinko with the plugin.dynamic-loader.darwin-kernel.scan-type setting
handling that was probably the source of the settings problem. Need to verify that it's working correctly tomorrow though. llvm-svn: 173894
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, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index c9d338370ea..3fc104b2b0e 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -49,7 +49,7 @@ enum KASLRScanType
{
eKASLRScanNone = 0, // No reading into the inferior at all
eKASLRScanLowgloAddresses, // Check one word of memory for a possible kernel addr, then see if a kernel is there
- eKASLRScanNearPC, // Scan backwards from the current $pc looking for kernel; checking at 64 locations total
+ eKASLRScanNearPC, // Scan backwards from the current $pc looking for kernel; checking at 96 locations total
eKASLRScanExhaustiveScan // Scan through the entire possible kernel address range looking for a kernel
};
@@ -110,7 +110,7 @@ public:
GetScanType() const
{
const uint32_t idx = ePropertyScanType;
- return (KASLRScanType) m_collection_sp->SetPropertyAtIndexAsEnumeration (NULL, idx, g_properties[idx].default_uint_value);
+ return (KASLRScanType) m_collection_sp->GetPropertyAtIndexAsEnumeration (NULL, idx, g_properties[idx].default_uint_value);
}
OpenPOWER on IntegriCloud