48 :
Thread(process, td.tid), m_thread_name(td.name), m_thread_reg_ctx_sp(),
49 m_signo(td.signo), m_gpregset_data(td.gpregset), m_notes(td.notes) {}
66 RegisterContextSP reg_ctx_sp;
73 if (concrete_frame_idx == 0) {
82 case llvm::Triple::FreeBSD: {
84 case llvm::Triple::aarch64:
85 case llvm::Triple::arm:
87 case llvm::Triple::ppc:
90 case llvm::Triple::ppc64:
93 case llvm::Triple::mips64:
96 case llvm::Triple::x86:
99 case llvm::Triple::x86_64:
108 case llvm::Triple::NetBSD: {
110 case llvm::Triple::aarch64:
112 case llvm::Triple::x86:
115 case llvm::Triple::x86_64:
124 case llvm::Triple::Linux: {
126 case llvm::Triple::aarch64:
128 case llvm::Triple::ppc64le:
131 case llvm::Triple::systemz:
134 case llvm::Triple::x86:
137 case llvm::Triple::x86_64:
146 case llvm::Triple::OpenBSD: {
148 case llvm::Triple::aarch64:
150 case llvm::Triple::x86:
153 case llvm::Triple::x86_64:
166 if (!reg_interface && arch.
GetMachine() != llvm::Triple::aarch64 &&
168 LLDB_LOGF(log,
"elf-core::%s:: Architecture(%d) or OS(%d) not supported",
170 assert(
false &&
"Architecture or OS not supported");
174 case llvm::Triple::aarch64:
178 case llvm::Triple::arm:
183 case llvm::Triple::mipsel:
184 case llvm::Triple::mips:
188 case llvm::Triple::mips64:
189 case llvm::Triple::mips64el:
193 case llvm::Triple::ppc:
194 case llvm::Triple::ppc64:
198 case llvm::Triple::ppc64le:
202 case llvm::Triple::systemz:
206 case llvm::Triple::x86:
207 case llvm::Triple::x86_64:
237 constexpr size_t mips_linux_pr_status_size_o32 = 96;
238 constexpr size_t mips_linux_pr_status_size_n32 = 72;
239 constexpr size_t num_ptr_size_members = 10;
242 assert(!abi.empty() &&
"ABI is not set");
243 if (!abi.compare(
"n64"))
245 else if (!abi.compare(
"o32"))
246 return mips_linux_pr_status_size_o32;
248 return mips_linux_pr_status_size_n32;
266 error.SetErrorStringWithFormat(
267 "NT_PRSTATUS size should be %zu, but the remaining bytes are: %" PRIu64,
311 constexpr size_t mips_linux_pr_psinfo_size_o32_n32 = 128;
314 if (address_byte_size == 8)
316 return mips_linux_pr_psinfo_size_o32_n32;
336 error.SetErrorStringWithFormat(
337 "NT_PRPSINFO size should be %zu, but the remaining bytes are: %" PRIu64,
402 error.SetErrorStringWithFormat(
403 "NT_SIGINFO size should be %zu, but the remaining bytes are: %" PRIu64,
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOGF(log,...)
lldb_private::ArchSpec GetArchitecture()
static std::unique_ptr< RegisterContextCorePOSIX_arm64 > Create(lldb_private::Thread &thread, const lldb_private::ArchSpec &arch, const lldb_private::DataExtractor &gpregset, llvm::ArrayRef< lldb_private::CoreNote > notes)
void RefreshStateAfterStop() override
lldb::RegisterContextSP GetRegisterContext() override
~ThreadElfCore() override
ThreadElfCore(lldb_private::Process &process, const ThreadData &td)
lldb::RegisterContextSP CreateRegisterContextForFrame(lldb_private::StackFrame *frame) override
std::vector< lldb_private::CoreNote > m_notes
lldb::RegisterContextSP m_thread_reg_ctx_sp
lldb_private::DataExtractor m_gpregset_data
bool CalculateStopInfo() override
An architecture specification class.
uint32_t GetAddressByteSize() const
Returns the size in bytes of an address of the current architecture.
llvm::Triple & GetTriple()
Architecture triple accessor.
bool IsMIPS() const
if MIPS architecture return true.
std::string GetTargetABI() const
Return a string representing target application ABI.
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
A plug-in interface definition class for debugging a process.
RegisterInfo interface to patch RegisterInfo structure for archs.
This base class provides an interface to stack frames.
uint32_t GetConcreteFrameIndex() const
Query this frame to find what frame it is in this Thread's StackFrameList, not counting inlined frame...
static lldb::StopInfoSP CreateStopReasonWithSignal(Thread &thread, int signo, const char *description=nullptr)
void SetStopInfo(const lldb::StopInfoSP &stop_info_sp)
virtual void DestroyThread()
virtual Unwind & GetUnwinder()
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.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
ByteOrder
Byte ordering definitions.
lldb_private::Status Parse(const lldb_private::DataExtractor &data, const lldb_private::ArchSpec &arch)
static size_t GetSize(const lldb_private::ArchSpec &arch)
static size_t GetSize(const lldb_private::ArchSpec &arch)
lldb_private::Status Parse(const lldb_private::DataExtractor &data, const lldb_private::ArchSpec &arch)
lldb_private::Status Parse(const lldb_private::DataExtractor &data, const lldb_private::ArchSpec &arch)
static size_t GetSize(const lldb_private::ArchSpec &arch)