Go to the documentation of this file.
37 :
Thread(process, tid), m_thread_name(), m_dispatch_queue_name(),
57 const bool force =
false;
69 lldb::RegisterContextSP
71 lldb::RegisterContextSP reg_ctx_sp;
77 if (concrete_frame_idx == 0) {
96 case AppleArm64ExceptionClass::ESR_EC_UNCATEGORIZED:
97 case AppleArm64ExceptionClass::ESR_EC_SVC_32:
98 case AppleArm64ExceptionClass::ESR_EC_SVC_64:
110 StopInfoSP stop_info;
114 Target &target = process_sp->GetTarget();
120 const RegisterInfo *esr_info = reg_ctx_sp->GetRegisterInfoByName(
"esr");
121 const RegisterInfo *far_info = reg_ctx_sp->GetRegisterInfoByName(
"far");
123 if (reg_ctx_sp->ReadRegister(esr_info, esr) &&
124 reg_ctx_sp->ReadRegister(far_info, far)) {
130 S.
Printf(
"%s (fault address: 0x%" PRIx64
")",
133 StopInfo::CreateStopReasonWithException(*
this, S.
GetData());
const char * toString(AppleArm64ExceptionClass EC)
void RefreshStateAfterStop() override
lldb::RegisterContextSP GetRegisterContext() override
virtual Unwind & GetUnwinder()
uint64_t GetAsUInt64(uint64_t fail_value=UINT64_MAX, bool *success_ptr=nullptr) const
ThreadMachCore(lldb_private::Process &process, lldb::tid_t tid)
~ThreadMachCore() override
uint32_t GetConcreteFrameIndex() const
Query this frame to find what frame it is in this Thread's StackFrameList, not counting inlined frame...
lldb::ProcessSP GetProcess() const
virtual void DestroyThread()
uint32_t GetMachOCPUType() const
const char * GetData() const
const char * GetName() override
virtual lldb::RegisterContextSP GetThreadContextAtIndex(uint32_t idx, lldb_private::Thread &thread)
static bool IsCrashExceptionClass(AppleArm64ExceptionClass EC)
std::string m_thread_name
void SetStopInfo(const lldb::StopInfoSP &stop_info_sp)
static bool ThreadIDIsValid(lldb::tid_t thread)
lldb::RegisterContextSP m_thread_reg_ctx_sp
#define CPU_TYPE_ARM64_32
lldb::user_id_t GetID() const
Get accessor for the user ID.
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame)
const ArchSpec & GetArchitecture() const
lldb::RegisterContextSP m_reg_context_sp
The register context for this thread's current register state.
AppleArm64ExceptionClass getAppleArm64ExceptionClass(uint32_t esr)
Get the Apple ARM64 exception class encoded within esr.
#define LLDB_INVALID_ADDRESS
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
bool CalculateStopInfo() override
A class that represents a running process on the host machine.
lldb::RegisterContextSP CreateRegisterContextForFrame(lldb_private::StackFrame *frame) override
uint32_t GetAsUInt32(uint32_t fail_value=UINT32_MAX, bool *success_ptr=nullptr) const