Format OptionEnumValueElement (NFC)
Reformat OptionEnumValueElement to make it easier to distinguish between its fields. This also removes the need to disable clang-format for these arrays. Differential revision: https://reviews.llvm.org/D65489 llvm-svn: 367638
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user