LLDB mainline
DynamicLoaderDarwinKernel.cpp File Reference

Go to the source code of this file.

Classes

class  DynamicLoaderDarwinKernelProperties

Macros

#define DEBUG_PRINTF(fmt, ...)
#define LLDB_PROPERTIES_dynamicloaderdarwinkernel
#define LLDB_PROPERTIES_dynamicloaderdarwinkernel

Enumerations

enum  KASLRScanType { eKASLRScanNone = 0 , eKASLRScanLowgloAddresses , eKASLRScanNearPC , eKASLRScanExhaustiveScan }
enum  

Functions

static DynamicLoaderDarwinKernelProperties & GetGlobalProperties ()
static bool is_kernel (Module *module)

Variables

static constexpr OptionEnumValueElement g_kaslr_kernel_scan_enum_values []

Macro Definition Documentation

◆ DEBUG_PRINTF

◆ LLDB_PROPERTIES_dynamicloaderdarwinkernel [1/2]

#define LLDB_PROPERTIES_dynamicloaderdarwinkernel

Definition at line 93 of file DynamicLoaderDarwinKernel.cpp.

◆ LLDB_PROPERTIES_dynamicloaderdarwinkernel [2/2]

#define LLDB_PROPERTIES_dynamicloaderdarwinkernel

Definition at line 93 of file DynamicLoaderDarwinKernel.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 96 of file DynamicLoaderDarwinKernel.cpp.

◆ KASLRScanType

Enumerator
eKASLRScanNone 
eKASLRScanLowgloAddresses 
eKASLRScanNearPC 
eKASLRScanExhaustiveScan 

Definition at line 57 of file DynamicLoaderDarwinKernel.cpp.

Function Documentation

◆ GetGlobalProperties()

◆ is_kernel()

Variable Documentation

◆ g_kaslr_kernel_scan_enum_values

OptionEnumValueElement g_kaslr_kernel_scan_enum_values[]
staticconstexpr
Initial value:
= {
{
"none",
"Do not read memory looking for a Darwin kernel when attaching.",
},
{
"basic",
"Check for the Darwin kernel's load addr in the lowglo page "
"(boot-args=debug) only.",
},
{
"fast-scan",
"Scan near the pc value on attach to find the Darwin kernel's load "
"address.",
},
{
"exhaustive-scan",
"Scan through the entire potential address range of Darwin kernel "
"(only on 32-bit targets).",
},
}
@ eKASLRScanLowgloAddresses

Definition at line 67 of file DynamicLoaderDarwinKernel.cpp.