LLDB mainline
|
#include "Plugins/ObjectFile/Mach-O/ObjectFileMachO.h"
#include "Plugins/Platform/MacOSX/PlatformDarwinKernel.h"
#include "lldb/Breakpoint/StoppointCallbackContext.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/Progress.h"
#include "lldb/Core/Section.h"
#include "lldb/Interpreter/OptionValueProperties.h"
#include "lldb/Symbol/ObjectFile.h"
#include "lldb/Target/OperatingSystem.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Target/ThreadPlanRunToAddress.h"
#include "lldb/Utility/AddressableBits.h"
#include "lldb/Utility/DataBuffer.h"
#include "lldb/Utility/DataBufferHeap.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/State.h"
#include "DynamicLoaderDarwinKernel.h"
#include <algorithm>
#include <memory>
#include "DynamicLoaderDarwinKernelProperties.inc"
#include "DynamicLoaderDarwinKernelPropertiesEnum.inc"
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 [] |
#define DEBUG_PRINTF | ( | fmt, | |
... | |||
) |
Definition at line 43 of file DynamicLoaderDarwinKernel.cpp.
#define LLDB_PROPERTIES_dynamicloaderdarwinkernel |
Definition at line 96 of file DynamicLoaderDarwinKernel.cpp.
#define LLDB_PROPERTIES_dynamicloaderdarwinkernel |
Definition at line 96 of file DynamicLoaderDarwinKernel.cpp.
anonymous enum |
Definition at line 95 of file DynamicLoaderDarwinKernel.cpp.
enum KASLRScanType |
Enumerator | |
---|---|
eKASLRScanNone | |
eKASLRScanLowgloAddresses | |
eKASLRScanNearPC | |
eKASLRScanExhaustiveScan |
Definition at line 56 of file DynamicLoaderDarwinKernel.cpp.
|
static |
Definition at line 130 of file DynamicLoaderDarwinKernel.cpp.
Referenced by lldb_private::StructuredDataDarwinLog::AddInitCompletionHook(), lldb_private::PlatformQemuUser::DebuggerInitialize(), lldb_private::StructuredDataDarwinLog::DebuggerInitialize(), DynamicLoaderDarwinKernel::DebuggerInitialize(), lldb_private::platform_android::PlatformAndroid::DebuggerInitialize(), lldb_private::PlatformDarwin::DebuggerInitialize(), lldb_private::PlatformQemuUser::DebugProcess(), lldb_private::StructuredDataDarwinLog::FilterLaunchInfo(), lldb_private::PlatformQemuUser::GetEnvironment(), lldb_private::PlatformDarwin::GetExtraStartupCommands(), lldb_private::platform_android::PlatformAndroid::GetPropertyPackageName(), lldb_private::PlatformQemuUser::GetSupportedArchitectures(), lldb_private::StructuredDataDarwinLog::ModulesDidLoad(), DynamicLoaderDarwinKernel::ParseKextSummaries(), DynamicLoaderDarwinKernel::SearchForKernelNearPC(), DynamicLoaderDarwinKernel::SearchForKernelViaExhaustiveSearch(), and DynamicLoaderDarwinKernel::SearchForKernelWithDebugHints().
|
static |
Definition at line 135 of file DynamicLoaderDarwinKernel.cpp.
References lldb_private::ObjectFile::eStrataKernel, lldb_private::ObjectFile::eTypeExecutable, lldb_private::Module::GetObjectFile(), lldb_private::ObjectFile::GetStrata(), and lldb_private::ObjectFile::GetType().
Referenced by DynamicLoaderDarwinKernel::CheckForKernelImageAtAddress(), DynamicLoaderDarwinKernel::CreateInstance(), DynamicLoaderFreeBSDKernel::CreateInstance(), DynamicLoaderFreeBSDKernel::FindKernelAtLoadAddress(), DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule(), DynamicLoaderDarwinKernel::LoadKernelModuleIfNeeded(), DynamicLoaderFreeBSDKernel::LoadKernelModules(), DynamicLoaderFreeBSDKernel::ParseKmods(), DynamicLoaderDarwinKernel::KextImageInfo::ReadMemoryModule(), DynamicLoaderFreeBSDKernel::KModImageInfo::ReadMemoryModule(), DynamicLoaderDarwinKernel::SearchForKernelAtSameLoadAddr(), DynamicLoaderDarwinKernel::KextImageInfo::SetIsKernel(), DynamicLoaderFreeBSDKernel::KModImageInfo::SetIsKernel(), and DynamicLoaderDarwinKernel::KextImageInfo::SetModule().
|
staticconstexpr |
Definition at line 66 of file DynamicLoaderDarwinKernel.cpp.