31 std::string thread_name)
48 uint32_t concrete_frame_idx = 0;
53 if (concrete_frame_idx == 0) {
62 case llvm::Triple::aarch64:
64 std::make_shared<RegisterContextFreeBSDKernelCore_arm64>(
65 *
this, std::make_unique<RegisterInfoPOSIX_arm64>(arch, 0),
68 case llvm::Triple::arm:
70 std::make_shared<RegisterContextFreeBSDKernelCore_arm>(
71 *
this, std::make_unique<RegisterInfoPOSIX_arm>(arch),
m_pcb_addr);
73 case llvm::Triple::x86:
75 std::make_shared<RegisterContextFreeBSDKernelCore_i386>(
78 case llvm::Triple::x86_64:
80 std::make_shared<RegisterContextFreeBSDKernelCore_x86_64>(
85 "Unsupported architecture passed to ThreadFreeBSDKernelCore");
lldb::RegisterContextSP m_thread_reg_ctx_sp
~ThreadFreeBSDKernelCore() override
ThreadFreeBSDKernelCore(lldb_private::Process &process, lldb::tid_t tid, lldb::addr_t pcb_addr, std::string thread_name)
lldb::RegisterContextSP CreateRegisterContextForFrame(lldb_private::StackFrame *frame) override
std::string m_thread_name
bool CalculateStopInfo() override
Ask the thread subclass to set its stop info.
void RefreshStateAfterStop() override
lldb::RegisterContextSP GetRegisterContext() override
An architecture specification class.
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
A plug-in interface definition class for debugging a process.
Target & GetTarget()
Get the target object pointer for this module.
virtual uint32_t GetConcreteFrameIndex()
Query this frame to find what frame it is in this Thread's StackFrameList, not counting inlined frame...
static lldb::StopInfoSP CreateStopReasonWithException(Thread &thread, const char *description)
const ArchSpec & GetArchitecture() const
void SetStopInfo(const lldb::StopInfoSP &stop_info_sp)
virtual Unwind & GetUnwinder()
Thread(Process &process, lldb::tid_t tid, bool use_invalid_index_id=false)
Constructor.
lldb::ProcessSP GetProcess() const
lldb::RegisterContextSP m_reg_context_sp
The register context for this thread's current register state.
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::RegisterContext > RegisterContextSP