#include "ABISysV_msp430.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/Value.h"
#include "lldb/Core/ValueObjectConstResult.h"
#include "lldb/Core/ValueObjectMemory.h"
#include "lldb/Core/ValueObjectRegister.h"
#include "lldb/Symbol/UnwindPlan.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
#include "lldb/Target/Thread.h"
#include "lldb/Utility/ConstString.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/RegisterValue.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/TargetParser/Triple.h"
usingnamespacelldb;
usingnamespacelldb_private;
LLDB_PLUGIN_DEFINE_ADV(ABISysV_msp430, ABIMSP430)
enum dwarf_regnums { … };
static const RegisterInfo g_register_infos[] = …;
static const uint32_t k_num_register_infos = …;
const lldb_private::RegisterInfo *
ABISysV_msp430::GetRegisterInfoArray(uint32_t &count) { … }
size_t ABISysV_msp430::GetRedZoneSize() const { … }
ABISP
ABISysV_msp430::CreateInstance(lldb::ProcessSP process_sp,
const ArchSpec &arch) { … }
bool ABISysV_msp430::PrepareTrivialCall(Thread &thread, lldb::addr_t sp,
lldb::addr_t pc, lldb::addr_t ra,
llvm::ArrayRef<addr_t> args) const { … }
bool ABISysV_msp430::GetArgumentValues(Thread &thread,
ValueList &values) const { … }
Status ABISysV_msp430::SetReturnValueObject(lldb::StackFrameSP &frame_sp,
lldb::ValueObjectSP &new_value_sp) { … }
ValueObjectSP ABISysV_msp430::GetReturnValueObjectSimple(
Thread &thread, CompilerType &return_compiler_type) const { … }
ValueObjectSP ABISysV_msp430::GetReturnValueObjectImpl(
Thread &thread, CompilerType &return_compiler_type) const { … }
bool ABISysV_msp430::CreateFunctionEntryUnwindPlan(UnwindPlan &unwind_plan) { … }
bool ABISysV_msp430::CreateDefaultUnwindPlan(UnwindPlan &unwind_plan) { … }
bool ABISysV_msp430::RegisterIsVolatile(const RegisterInfo *reg_info) { … }
bool ABISysV_msp430::RegisterIsCalleeSaved(const RegisterInfo *reg_info) { … }
void ABISysV_msp430::Initialize(void) { … }
void ABISysV_msp430::Terminate(void) { … }