Go to the documentation of this file.
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 size_t GetSize(const lldb_private::ArchSpec &arch)
bool IsMIPS() const
if MIPS architecture return true.
lldb::RegisterContextSP CreateRegisterContextForFrame(lldb_private::StackFrame *frame) override
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
lldb_private::Status Parse(const lldb_private::DataExtractor &data, const lldb_private::ArchSpec &arch)
static size_t GetSize(const lldb_private::ArchSpec &arch)
void RefreshStateAfterStop() override
virtual Unwind & GetUnwinder()
#define LLDB_LOGF(log,...)
lldb_private::DataExtractor m_gpregset_data
llvm::Triple & GetTriple()
Architecture triple accessor.
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)
uint32_t GetConcreteFrameIndex() const
Query this frame to find what frame it is in this Thread's StackFrameList, not counting inlined frame...
static size_t GetSize(const lldb_private::ArchSpec &arch)
lldb::ProcessSP GetProcess() const
virtual void DestroyThread()
static llvm::raw_ostream & error(Stream &strm)
~ThreadElfCore() override
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)
ThreadElfCore(lldb_private::Process &process, const ThreadData &td)
void SetStopInfo(const lldb::StopInfoSP &stop_info_sp)
string(SUBSTRING ${p} 10 -1 pStripped) if($
uint32_t GetAddressByteSize() const
Returns the size in bytes of an address of the current architecture.
std::vector< lldb_private::CoreNote > m_notes
lldb::RegisterContextSP CreateRegisterContextForFrame(StackFrame *frame)
lldb::RegisterContextSP m_reg_context_sp
The register context for this thread's current register state.
lldb::RegisterContextSP m_thread_reg_ctx_sp
A class that represents a running process on the host machine.
std::string GetTargetABI() const
Return a string representing target application ABI.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
lldb_private::ArchSpec GetArchitecture()
lldb::RegisterContextSP GetRegisterContext() override
bool CalculateStopInfo() override
ByteOrder
Byte ordering definitions.