using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABIMacOSX_arm64);
+LLDB_PLUGIN(ABIMacOSX_arm64)
static const char *pluginDesc = "Mac OS X ABI for arm64 targets";
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_arm64);
+LLDB_PLUGIN(ABISysV_arm64)
static RegisterInfo g_register_infos[] = {
// NAME ALT SZ OFF ENCODING FORMAT
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_arc);
+LLDB_PLUGIN(ABISysV_arc)
namespace {
namespace dwarf {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABIMacOSX_arm);
+LLDB_PLUGIN(ABIMacOSX_arm)
static RegisterInfo g_register_infos[] = {
// NAME ALT SZ OFF ENCODING FORMAT EH_FRAME
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_arm);
+LLDB_PLUGIN(ABISysV_arm)
static RegisterInfo g_register_infos[] = {
// NAME ALT SZ OFF ENCODING FORMAT EH_FRAME
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_hexagon);
+LLDB_PLUGIN(ABISysV_hexagon)
static RegisterInfo g_register_infos[] = {
// hexagon-core.xml
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_mips);
+LLDB_PLUGIN(ABISysV_mips)
enum dwarf_regnums {
dwarf_r0 = 0,
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_mips64);
+LLDB_PLUGIN(ABISysV_mips64)
enum dwarf_regnums {
dwarf_r0 = 0,
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_ppc);
+LLDB_PLUGIN(ABISysV_ppc)
enum dwarf_regnums {
dwarf_r0 = 0,
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_ppc64);
+LLDB_PLUGIN(ABISysV_ppc64)
const lldb_private::RegisterInfo *
ABISysV_ppc64::GetRegisterInfoArray(uint32_t &count) {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_s390x);
+LLDB_PLUGIN(ABISysV_s390x)
enum dwarf_regnums {
// General Purpose Registers
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABIMacOSX_i386);
+LLDB_PLUGIN(ABIMacOSX_i386)
enum {
ehframe_eax = 0,
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_i386);
+LLDB_PLUGIN(ABISysV_i386)
// This source file uses the following document as a reference:
//====================================================================
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABISysV_x86_64);
+LLDB_PLUGIN(ABISysV_x86_64)
enum dwarf_regnums {
dwarf_rax = 0,
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ABIWindows_x86_64);
+LLDB_PLUGIN(ABIWindows_x86_64)
enum dwarf_regnums {
dwarf_rax = 0,
using namespace lldb_private;
using namespace lldb;
-LLDB_PLUGIN(ArchitectureArm);
+LLDB_PLUGIN(ArchitectureArm)
ConstString ArchitectureArm::GetPluginNameStatic() {
return ConstString("arm");
using namespace lldb_private;
using namespace lldb;
-LLDB_PLUGIN(ArchitectureMips);
+LLDB_PLUGIN(ArchitectureMips)
ConstString ArchitectureMips::GetPluginNameStatic() {
return ConstString("mips");
using namespace lldb_private;
using namespace lldb;
-LLDB_PLUGIN(ArchitecturePPC64);
+LLDB_PLUGIN(ArchitecturePPC64)
ConstString ArchitecturePPC64::GetPluginNameStatic() {
return ConstString("ppc64");
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DisassemblerLLVMC);
+LLDB_PLUGIN(DisassemblerLLVMC)
class DisassemblerLLVMC::MCDisasmInstance {
public:
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderDarwinKernel);
+LLDB_PLUGIN(DynamicLoaderDarwinKernel)
// Progressively greater amounts of scanning we will allow For some targets
// very early in startup, we can't do any random reads of memory or we can
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderMacOS);
+LLDB_PLUGIN(DynamicLoaderMacOS)
// Create an instance of this class. This function is filled into the plugin
// info class that gets handed out by the plugin factory and allows the lldb to
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderMacOSXDYLD);
+LLDB_PLUGIN(DynamicLoaderMacOSXDYLD)
// Create an instance of this class. This function is filled into the plugin
// info class that gets handed out by the plugin factory and allows the lldb to
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderPOSIXDYLD);
+LLDB_PLUGIN(DynamicLoaderPOSIXDYLD)
void DynamicLoaderPOSIXDYLD::Initialize() {
PluginManager::RegisterPlugin(GetPluginNameStatic(),
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderStatic);
+LLDB_PLUGIN(DynamicLoaderStatic)
// Create an instance of this class. This function is filled into the plugin
// info class that gets handed out by the plugin factory and allows the lldb to
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(DynamicLoaderWindowsDYLD);
+LLDB_PLUGIN(DynamicLoaderWindowsDYLD)
DynamicLoaderWindowsDYLD::DynamicLoaderWindowsDYLD(Process *process)
: DynamicLoader(process) {}
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(EmulateInstructionARM);
+LLDB_PLUGIN(EmulateInstructionARM)
// Convenient macro definitions.
#define APSR_C Bit32(m_opcode_cpsr, CPSR_C_POS)
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(EmulateInstructionARM64);
+LLDB_PLUGIN(EmulateInstructionARM64)
static bool LLDBTableGetRegisterInfo(uint32_t reg_num, RegisterInfo ®_info) {
if (reg_num >= llvm::array_lengthof(g_register_infos_arm64_le))
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(EmulateInstructionMIPS);
+LLDB_PLUGIN(EmulateInstructionMIPS)
#define UInt(x) ((uint64_t)x)
#define integer int64_t
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(EmulateInstructionMIPS64);
+LLDB_PLUGIN(EmulateInstructionMIPS64)
#define UInt(x) ((uint64_t)x)
#define integer int64_t
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(EmulateInstructionPPC64);
+LLDB_PLUGIN(EmulateInstructionPPC64)
EmulateInstructionPPC64::EmulateInstructionPPC64(const ArchSpec &arch)
: EmulateInstruction(arch) {}
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(InstrumentationRuntimeASan);
+LLDB_PLUGIN(InstrumentationRuntimeASan)
lldb::InstrumentationRuntimeSP
InstrumentationRuntimeASan::CreateInstance(const lldb::ProcessSP &process_sp) {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(InstrumentationRuntimeMainThreadChecker);
+LLDB_PLUGIN(InstrumentationRuntimeMainThreadChecker)
InstrumentationRuntimeMainThreadChecker::
~InstrumentationRuntimeMainThreadChecker() {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(InstrumentationRuntimeTSan);
+LLDB_PLUGIN(InstrumentationRuntimeTSan)
lldb::InstrumentationRuntimeSP
InstrumentationRuntimeTSan::CreateInstance(const lldb::ProcessSP &process_sp) {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(InstrumentationRuntimeUBSan);
+LLDB_PLUGIN(InstrumentationRuntimeUBSan)
InstrumentationRuntimeUBSan::~InstrumentationRuntimeUBSan() { Deactivate(); }
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(JITLoaderGDB);
+LLDB_PLUGIN(JITLoaderGDB)
// Debug Interface Structures
enum jit_actions_t { JIT_NOACTION = 0, JIT_REGISTER_FN, JIT_UNREGISTER_FN };
using namespace lldb_private;
using namespace lldb_private::formatters;
-LLDB_PLUGIN(CPlusPlusLanguage);
+LLDB_PLUGIN(CPlusPlusLanguage)
void CPlusPlusLanguage::Initialize() {
PluginManager::RegisterPlugin(GetPluginNameStatic(), "C++ Language",
using namespace lldb_private;
using namespace lldb_private::formatters;
-LLDB_PLUGIN(ObjCLanguage);
+LLDB_PLUGIN(ObjCLanguage)
void ObjCLanguage::Initialize() {
PluginManager::RegisterPlugin(GetPluginNameStatic(), "Objective-C Language",
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ObjCPlusPlusLanguage);
+LLDB_PLUGIN(ObjCPlusPlusLanguage)
bool ObjCPlusPlusLanguage::IsSourceFile(llvm::StringRef file_path) const {
const auto suffixes = {".h", ".mm"};
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ItaniumABILanguageRuntime);
+LLDB_PLUGIN(ItaniumABILanguageRuntime)
static const char *vtable_demangled_prefix = "vtable for ";
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(AppleObjCRuntime);
+LLDB_PLUGIN(AppleObjCRuntime)
char AppleObjCRuntime::ID = 0;
using namespace lldb_private;
using namespace lldb_renderscript;
-LLDB_PLUGIN(RenderScriptRuntime);
+LLDB_PLUGIN(RenderScriptRuntime)
#define FMT_COORD "(%" PRIu32 ", %" PRIu32 ", %" PRIu32 ")"
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(MemoryHistoryASan);
+LLDB_PLUGIN(MemoryHistoryASan)
MemoryHistorySP MemoryHistoryASan::CreateInstance(const ProcessSP &process_sp) {
if (!process_sp.get())
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ObjectContainerBSDArchive);
+LLDB_PLUGIN(ObjectContainerBSDArchive)
ObjectContainerBSDArchive::Object::Object()
: ar_name(), modification_time(0), uid(0), gid(0), mode(0), size(0),
using namespace lldb_private;
using namespace llvm::MachO;
-LLDB_PLUGIN(ObjectContainerUniversalMachO);
+LLDB_PLUGIN(ObjectContainerUniversalMachO)
void ObjectContainerUniversalMachO::Initialize() {
PluginManager::RegisterPlugin(GetPluginNameStatic(),
using namespace lldb_private;
using namespace lldb_private::breakpad;
-LLDB_PLUGIN(ObjectFileBreakpad);
+LLDB_PLUGIN(ObjectFileBreakpad)
namespace {
struct Header {
using namespace elf;
using namespace llvm::ELF;
-LLDB_PLUGIN(ObjectFileELF);
+LLDB_PLUGIN(ObjectFileELF)
namespace {
using namespace lldb_private;
using namespace llvm::MachO;
-LLDB_PLUGIN(ObjectFileMachO);
+LLDB_PLUGIN(ObjectFileMachO)
// Some structure definitions needed for parsing the dyld shared cache files
// found on iOS devices.
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ObjectFilePECOFF);
+LLDB_PLUGIN(ObjectFilePECOFF)
struct CVInfoPdb70 {
// 16-byte GUID
using namespace lldb_private;
using namespace lldb_private::wasm;
-LLDB_PLUGIN(ObjectFileWasm);
+LLDB_PLUGIN(ObjectFileWasm)
static const uint32_t kWasmHeaderSize =
sizeof(llvm::wasm::WasmMagic) + sizeof(llvm::wasm::WasmVersion);
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(OperatingSystemPython);
+LLDB_PLUGIN(OperatingSystemPython)
void OperatingSystemPython::Initialize() {
PluginManager::RegisterPlugin(GetPluginNameStatic(),
using namespace lldb_private::platform_android;
using namespace std::chrono;
-LLDB_PLUGIN(PlatformAndroid);
+LLDB_PLUGIN(PlatformAndroid)
static uint32_t g_initialize_count = 0;
static const unsigned int g_android_default_cache_size =
using namespace lldb_private;
using namespace lldb_private::platform_freebsd;
-LLDB_PLUGIN(PlatformFreeBSD);
+LLDB_PLUGIN(PlatformFreeBSD)
static uint32_t g_initialize_count = 0;
using namespace lldb_private;
using namespace lldb_private::platform_linux;
-LLDB_PLUGIN(PlatformLinux);
+LLDB_PLUGIN(PlatformLinux)
static uint32_t g_initialize_count = 0;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(PlatformMacOSX);
+LLDB_PLUGIN(PlatformMacOSX)
static uint32_t g_initialize_count = 0;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(PlatformRemoteiOS);
+LLDB_PLUGIN(PlatformRemoteiOS)
// Static Variables
static uint32_t g_initialize_count = 0;
using namespace lldb_private;
using namespace lldb_private::platform_netbsd;
-LLDB_PLUGIN(PlatformNetBSD);
+LLDB_PLUGIN(PlatformNetBSD)
static uint32_t g_initialize_count = 0;
using namespace lldb_private;
using namespace lldb_private::platform_openbsd;
-LLDB_PLUGIN(PlatformOpenBSD);
+LLDB_PLUGIN(PlatformOpenBSD)
static uint32_t g_initialize_count = 0;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(PlatformWindows);
+LLDB_PLUGIN(PlatformWindows)
static uint32_t g_initialize_count = 0;
using namespace lldb_private;
using namespace lldb_private::platform_gdb_server;
-LLDB_PLUGIN(PlatformRemoteGDBServer);
+LLDB_PLUGIN(PlatformRemoteGDBServer)
static bool g_initialized = false;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ProcessFreeBSD);
+LLDB_PLUGIN(ProcessFreeBSD)
namespace {
UnixSignalsSP &GetFreeBSDSignals() {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ProcessKDP);
+LLDB_PLUGIN(ProcessKDP)
namespace {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ProcessWindows);
+LLDB_PLUGIN(ProcessWindows)
namespace {
std::string GetProcessExecutableName(HANDLE process_handle) {
using namespace lldb_private;
namespace ELF = llvm::ELF;
-LLDB_PLUGIN(ProcessElfCore);
+LLDB_PLUGIN(ProcessElfCore)
ConstString ProcessElfCore::GetPluginNameStatic() {
static ConstString g_name("elf-core");
using namespace lldb_private;
using namespace lldb_private::process_gdb_remote;
-LLDB_PLUGIN(ProcessGDBRemote);
+LLDB_PLUGIN(ProcessGDBRemote)
namespace lldb {
// Provide a function that can easily dump the packet history if we know a
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ProcessMachCore);
+LLDB_PLUGIN(ProcessMachCore)
ConstString ProcessMachCore::GetPluginNameStatic() {
static ConstString g_name("mach-o-core");
using namespace lldb_private;
using namespace minidump;
-LLDB_PLUGIN(ProcessMinidump);
+LLDB_PLUGIN(ProcessMinidump)
namespace {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ScriptInterpreterLua);
+LLDB_PLUGIN(ScriptInterpreterLua)
class IOHandlerLuaInterpreter : public IOHandlerDelegate,
public IOHandlerEditline {
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(ScriptInterpreterNone);
+LLDB_PLUGIN(ScriptInterpreterNone)
ScriptInterpreterNone::ScriptInterpreterNone(Debugger &debugger)
: ScriptInterpreter(debugger, eScriptLanguageNone) {}
using namespace lldb_private::python;
using llvm::Expected;
-LLDB_PLUGIN(ScriptInterpreterPython);
+LLDB_PLUGIN(ScriptInterpreterPython)
// Defined in the SWIG source file
#if PY_MAJOR_VERSION >= 3
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(StructuredDataDarwinLog);
+LLDB_PLUGIN(StructuredDataDarwinLog)
#pragma mark -
#pragma mark Anonymous Namespace
using namespace lldb_private;
using namespace lldb_private::breakpad;
-LLDB_PLUGIN(SymbolFileBreakpad);
+LLDB_PLUGIN(SymbolFileBreakpad)
char SymbolFileBreakpad::ID;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SymbolFileDWARF);
+LLDB_PLUGIN(SymbolFileDWARF)
char SymbolFileDWARF::ID;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SymbolFileDWARFDebugMap);
+LLDB_PLUGIN(SymbolFileDWARFDebugMap)
char SymbolFileDWARFDebugMap::ID;
using namespace lldb_private;
using namespace llvm::pdb;
-LLDB_PLUGIN(SymbolFilePDB);
+LLDB_PLUGIN(SymbolFilePDB)
char SymbolFilePDB::ID;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SymbolFileSymtab);
+LLDB_PLUGIN(SymbolFileSymtab)
char SymbolFileSymtab::ID;
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SymbolVendorELF);
+LLDB_PLUGIN(SymbolVendorELF)
// SymbolVendorELF constructor
SymbolVendorELF::SymbolVendorELF(const lldb::ModuleSP &module_sp)
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SymbolVendorMacOSX);
+LLDB_PLUGIN(SymbolVendorMacOSX)
// SymbolVendorMacOSX constructor
SymbolVendorMacOSX::SymbolVendorMacOSX(const lldb::ModuleSP &module_sp)
using namespace lldb_private;
using namespace lldb_private::wasm;
-LLDB_PLUGIN(SymbolVendorWasm);
+LLDB_PLUGIN(SymbolVendorWasm)
// SymbolVendorWasm constructor
SymbolVendorWasm::SymbolVendorWasm(const lldb::ModuleSP &module_sp)
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(SystemRuntimeMacOSX);
+LLDB_PLUGIN(SystemRuntimeMacOSX)
// Create an instance of this class. This function is filled into the plugin
// info class that gets handed out by the plugin factory and allows the lldb to
using namespace clang;
using llvm::StringSwitch;
-LLDB_PLUGIN(TypeSystemClang);
+LLDB_PLUGIN(TypeSystemClang)
namespace {
#ifdef LLDB_CONFIGURATION_DEBUG
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(UnwindAssemblyInstEmulation);
+LLDB_PLUGIN(UnwindAssemblyInstEmulation)
// UnwindAssemblyInstEmulation method definitions
using namespace lldb;
using namespace lldb_private;
-LLDB_PLUGIN(UnwindAssembly_x86);
+LLDB_PLUGIN(UnwindAssembly_x86)
// UnwindAssemblyParser_x86 method definitions