summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp36
1 files changed, 25 insertions, 11 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 51f128f9706..790e7866516 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -31,8 +31,8 @@
#include "DynamicLoaderDarwinKernel.h"
-#include <memory>
#include <algorithm>
+#include <memory>
//#define ENABLE_DEBUG_PRINTF // COMMENT THIS LINE OUT PRIOR TO CHECKIN
#ifdef ENABLE_DEBUG_PRINTF
@@ -61,16 +61,30 @@ enum KASLRScanType {
};
static constexpr OptionEnumValueElement g_kaslr_kernel_scan_enum_values[] = {
- {eKASLRScanNone, "none",
- "Do not read memory looking for a Darwin kernel when attaching."},
- {eKASLRScanLowgloAddresses, "basic", "Check for the Darwin kernel's load "
- "addr in the lowglo page "
- "(boot-args=debug) only."},
- {eKASLRScanNearPC, "fast-scan", "Scan near the pc value on attach to find "
- "the Darwin kernel's load address."},
- {eKASLRScanExhaustiveScan, "exhaustive-scan",
- "Scan through the entire potential address range of Darwin kernel (only "
- "on 32-bit targets)."}};
+ {
+ eKASLRScanNone,
+ "none",
+ "Do not read memory looking for a Darwin kernel when attaching.",
+ },
+ {
+ eKASLRScanLowgloAddresses,
+ "basic",
+ "Check for the Darwin kernel's load addr in the lowglo page "
+ "(boot-args=debug) only.",
+ },
+ {
+ eKASLRScanNearPC,
+ "fast-scan",
+ "Scan near the pc value on attach to find the Darwin kernel's load "
+ "address.",
+ },
+ {
+ eKASLRScanExhaustiveScan,
+ "exhaustive-scan",
+ "Scan through the entire potential address range of Darwin kernel "
+ "(only on 32-bit targets).",
+ },
+};
#define LLDB_PROPERTIES_dynamicloaderdarwinkernel
#include "DynamicLoaderDarwinKernelProperties.inc"
OpenPOWER on IntegriCloud