LLDB mainline
|
#include <NativeThreadNetBSD.h>
Private Types | |
using | WatchpointIndexMap = std::map< lldb::addr_t, uint32_t > |
Private Member Functions | |
Status | Resume () |
Status | SingleStep () |
Status | Suspend () |
void | SetStoppedBySignal (uint32_t signo, const siginfo_t *info=nullptr) |
void | SetStoppedByBreakpoint () |
void | SetStoppedByTrace () |
void | SetStoppedByExec () |
void | SetStoppedByWatchpoint (uint32_t wp_index) |
void | SetStoppedByFork (lldb::pid_t child_pid, lldb::tid_t child_tid) |
void | SetStoppedByVFork (lldb::pid_t child_pid, lldb::tid_t child_tid) |
void | SetStoppedByVForkDone () |
void | SetStoppedWithNoReason () |
void | SetStopped () |
void | SetRunning () |
void | SetStepping () |
llvm::Error | CopyWatchpointsFrom (NativeThreadNetBSD &source) |
Private Attributes | |
lldb::StateType | m_state |
ThreadStopInfo | m_stop_info |
std::unique_ptr< NativeRegisterContextNetBSD > | m_reg_context_up |
std::string | m_stop_description |
WatchpointIndexMap | m_watchpoint_index_map |
WatchpointIndexMap | m_hw_break_index_map |
Friends | |
class | NativeProcessNetBSD |
Additional Inherited Members | |
![]() | |
NativeProcessProtocol & | m_process |
lldb::tid_t | m_tid |
Definition at line 25 of file NativeThreadNetBSD.h.
|
private |
Definition at line 77 of file NativeThreadNetBSD.h.
NativeThreadNetBSD::NativeThreadNetBSD | ( | NativeProcessNetBSD & | process, |
lldb::tid_t | tid | ||
) |
Definition at line 37 of file NativeThreadNetBSD.cpp.
|
private |
Definition at line 321 of file NativeThreadNetBSD.cpp.
References lldb_private::process_netbsd::NativeRegisterContextNetBSD::CopyHardwareWatchpointsFrom(), GetRegisterContext(), m_hw_break_index_map, and m_watchpoint_index_map.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 182 of file NativeThreadNetBSD.cpp.
References error(), lldb_private::NativeProcessProtocol::GetID(), lldb_private::GetLog(), LLDB_LOG, lldb_private::NativeThreadProtocol::m_process, lldb_private::NativeThreadProtocol::m_tid, lldb_private::process_netbsd::NativeProcessNetBSD::PtraceWrapper(), and lldb_private::Thread.
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 258 of file NativeThreadNetBSD.cpp.
References m_reg_context_up.
Referenced by CopyWatchpointsFrom(), lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP(), RemoveHardwareBreakpoint(), RemoveWatchpoint(), SetHardwareBreakpoint(), SetStoppedByWatchpoint(), and SetWatchpoint().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 226 of file NativeThreadNetBSD.cpp.
References m_state.
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 228 of file NativeThreadNetBSD.cpp.
References lldb::eStateAttaching, lldb::eStateConnected, lldb::eStateCrashed, lldb::eStateDetached, lldb::eStateExited, lldb::eStateInvalid, lldb::eStateLaunching, lldb::eStateRunning, lldb::eStateStepping, lldb::eStateStopped, lldb::eStateSuspended, lldb::eStateUnloaded, lldb_private::NativeThreadProtocol::GetID(), lldb_private::GetLog(), LLDB_LOG, m_state, m_stop_description, m_stop_info, lldb_private::StateAsCString(), and lldb_private::Thread.
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 306 of file NativeThreadNetBSD.cpp.
References GetRegisterContext(), and m_hw_break_index_map.
Referenced by SetHardwareBreakpoint().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 279 of file NativeThreadNetBSD.cpp.
References GetRegisterContext(), and m_watchpoint_index_map.
Referenced by SetWatchpoint().
|
private |
Definition at line 44 of file NativeThreadNetBSD.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::NativeThreadProtocol::m_process, lldb_private::process_netbsd::NativeProcessNetBSD::PtraceWrapper(), SetRunning(), and lldb_private::Status::Success().
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::Resume().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 290 of file NativeThreadNetBSD.cpp.
References error(), lldb::eStateStopped, GetRegisterContext(), LLDB_INVALID_INDEX32, m_hw_break_index_map, m_state, RemoveHardwareBreakpoint(), and lldb_private::NativeRegisterContext::SetHardwareBreakpoint().
|
private |
Definition at line 172 of file NativeThreadNetBSD.cpp.
References m_state, m_stop_info, and lldb_private::ThreadStopInfo::reason.
Referenced by Resume().
|
private |
Definition at line 177 of file NativeThreadNetBSD.cpp.
References m_state, m_stop_info, and lldb_private::ThreadStopInfo::reason.
Referenced by SingleStep().
|
private |
Definition at line 166 of file NativeThreadNetBSD.cpp.
References m_state, and m_stop_description.
Referenced by SetStoppedByBreakpoint(), SetStoppedByExec(), SetStoppedByFork(), SetStoppedBySignal(), SetStoppedByTrace(), SetStoppedByVFork(), SetStoppedByVForkDone(), SetStoppedByWatchpoint(), SetStoppedWithNoReason(), and Suspend().
|
private |
Definition at line 99 of file NativeThreadNetBSD.cpp.
References m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
private |
Definition at line 111 of file NativeThreadNetBSD.cpp.
References m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
private |
Definition at line 132 of file NativeThreadNetBSD.cpp.
References lldb_private::ThreadStopInfo::child_pid, lldb_private::ThreadStopInfo::child_tid, lldb_private::ThreadStopInfo::details, lldb_private::ThreadStopInfo::fork, m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorClone().
|
private |
Definition at line 76 of file NativeThreadNetBSD.cpp.
References GetCrashReasonString(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::GetLog(), LLDB_LOG, m_stop_description, m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and lldb_private::Thread.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::Attach(), lldb_private::process_netbsd::NativeProcessNetBSD::Factory::Launch(), lldb_private::process_netbsd::NativeProcessNetBSD::MonitorClone(), lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSignal(), and lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGSTOP().
|
private |
Definition at line 105 of file NativeThreadNetBSD.cpp.
References m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
private |
Definition at line 142 of file NativeThreadNetBSD.cpp.
References lldb_private::ThreadStopInfo::child_pid, lldb_private::ThreadStopInfo::child_tid, lldb_private::ThreadStopInfo::details, lldb_private::ThreadStopInfo::fork, m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorClone().
|
private |
Definition at line 152 of file NativeThreadNetBSD.cpp.
References m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
private |
Definition at line 117 of file NativeThreadNetBSD.cpp.
References GetRegisterContext(), lldb_private::NativeRegisterContext::GetWatchpointAddress(), lldb_private::NativeRegisterContext::GetWatchpointHitAddress(), LLDB_INVALID_INDEX32, lldbassert, m_stop_description, m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), lldb_private::ThreadStopInfo::signo, and SIGTRAP.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSIGTRAP().
|
private |
Definition at line 159 of file NativeThreadNetBSD.cpp.
References m_stop_info, lldb_private::ThreadStopInfo::reason, SetStopped(), and lldb_private::ThreadStopInfo::signo.
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::MonitorSignal().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 263 of file NativeThreadNetBSD.cpp.
References error(), lldb::eStateStopped, GetRegisterContext(), LLDB_INVALID_INDEX32, m_state, m_watchpoint_index_map, RemoveWatchpoint(), and lldb_private::NativeRegisterContext::SetHardwareWatchpoint().
|
private |
Definition at line 56 of file NativeThreadNetBSD.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::NativeThreadProtocol::m_process, lldb_private::process_netbsd::NativeProcessNetBSD::PtraceWrapper(), SetStepping(), and lldb_private::Status::Success().
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::Resume().
|
private |
Definition at line 68 of file NativeThreadNetBSD.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::NativeThreadProtocol::GetID(), lldb_private::NativeThreadProtocol::m_process, lldb_private::process_netbsd::NativeProcessNetBSD::PtraceWrapper(), SetStopped(), and lldb_private::Status::Success().
Referenced by lldb_private::process_netbsd::NativeProcessNetBSD::Resume().
|
friend |
Definition at line 26 of file NativeThreadNetBSD.h.
|
private |
Definition at line 79 of file NativeThreadNetBSD.h.
Referenced by CopyWatchpointsFrom(), RemoveHardwareBreakpoint(), and SetHardwareBreakpoint().
|
private |
Definition at line 75 of file NativeThreadNetBSD.h.
Referenced by GetRegisterContext().
|
private |
Definition at line 73 of file NativeThreadNetBSD.h.
Referenced by GetState(), GetStopReason(), SetHardwareBreakpoint(), SetRunning(), SetStepping(), SetStopped(), and SetWatchpoint().
|
private |
Definition at line 76 of file NativeThreadNetBSD.h.
Referenced by GetStopReason(), SetStopped(), SetStoppedBySignal(), and SetStoppedByWatchpoint().
|
private |
Definition at line 74 of file NativeThreadNetBSD.h.
Referenced by GetStopReason(), SetRunning(), SetStepping(), SetStoppedByBreakpoint(), SetStoppedByExec(), SetStoppedByFork(), SetStoppedBySignal(), SetStoppedByTrace(), SetStoppedByVFork(), SetStoppedByVForkDone(), SetStoppedByWatchpoint(), and SetStoppedWithNoReason().
|
private |
Definition at line 78 of file NativeThreadNetBSD.h.
Referenced by CopyWatchpointsFrom(), RemoveWatchpoint(), and SetWatchpoint().