#include "PlatformLinux.h"
#include "lldb/Host/Config.h"
#include <cstdio>
#if LLDB_ENABLE_POSIX
#include <sys/utsname.h>
#endif
#include "Utility/ARM64_DWARF_Registers.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Host/HostInfo.h"
#include "lldb/Symbol/UnwindPlan.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/Target.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/StreamString.h"
#define MAP_PRIVATE …
#define MAP_ANON …
usingnamespacelldb;
usingnamespacelldb_private;
usingnamespacelldb_private::platform_linux;
LLDB_PLUGIN_DEFINE(…)
static uint32_t g_initialize_count = …;
PlatformSP PlatformLinux::CreateInstance(bool force, const ArchSpec *arch) { … }
llvm::StringRef PlatformLinux::GetPluginDescriptionStatic(bool is_host) { … }
void PlatformLinux::Initialize() { … }
void PlatformLinux::Terminate() { … }
PlatformLinux::PlatformLinux(bool is_host)
: … { … }
std::vector<ArchSpec>
PlatformLinux::GetSupportedArchitectures(const ArchSpec &process_host_arch) { … }
void PlatformLinux::GetStatus(Stream &strm) { … }
uint32_t
PlatformLinux::GetResumeCountForLaunchInfo(ProcessLaunchInfo &launch_info) { … }
bool PlatformLinux::CanDebugProcess() { … }
void PlatformLinux::CalculateTrapHandlerSymbolNames() { … }
static lldb::UnwindPlanSP GetAArch64TrapHandlerUnwindPlan(ConstString name) { … }
lldb::UnwindPlanSP
PlatformLinux::GetTrapHandlerUnwindPlan(const llvm::Triple &triple,
ConstString name) { … }
MmapArgList PlatformLinux::GetMmapArgumentList(const ArchSpec &arch,
addr_t addr, addr_t length,
unsigned prot, unsigned flags,
addr_t fd, addr_t offset) { … }
CompilerType PlatformLinux::GetSiginfoType(const llvm::Triple &triple) { … }