aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/DynamicLoader
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-02 00:18:44 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-02 00:18:44 +0000
commite063eccc19c51572db67cf0689b594b3e5dc4d9e (patch)
tree3a69932e0e8b111d36d4fa6a198b717c790ebd78 /lldb/source/Plugins/DynamicLoader
parent12961ff0fad91d9e51329a1e59213499e33eb3a0 (diff)
downloadllvm-e063eccc19c51572db67cf0689b594b3e5dc4d9e.tar.gz
llvm-e063eccc19c51572db67cf0689b594b3e5dc4d9e.tar.bz2
llvm-e063eccc19c51572db67cf0689b594b3e5dc4d9e.zip
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
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
-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 51f128f97061..790e78665165 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"