LLDB mainline
|
#include <NativeThreadWindows.h>
Protected Types | |
using | IndexMap = std::map< lldb::addr_t, uint32_t > |
Protected Attributes | |
lldb::StateType | m_state = lldb::StateType::eStateInvalid |
std::string | m_name |
ThreadStopInfo | m_stop_info |
std::string | m_stop_description |
std::unique_ptr< NativeRegisterContextWindows > | m_reg_context_up |
IndexMap | m_watchpoint_index_map |
IndexMap | m_hw_breakpoint_index_map |
HostThread | m_host_thread |
Protected Attributes inherited from lldb_private::NativeThreadProtocol | |
NativeProcessProtocol & | m_process |
lldb::tid_t | m_tid |
Definition at line 22 of file NativeThreadWindows.h.
|
protected |
Definition at line 63 of file NativeThreadWindows.h.
NativeThreadWindows::NativeThreadWindows | ( | NativeProcessWindows & | process, |
const HostThread & | thread | ||
) |
Definition at line 25 of file NativeThreadWindows.cpp.
References lldb_private::NativeRegisterContextWindows::CreateHostNativeRegisterContextWindows(), lldb_private::NativeProcessWindows::GetArchitecture(), and m_reg_context_up.
|
inline |
Definition at line 26 of file NativeThreadWindows.h.
Status NativeThreadWindows::DoResume | ( | lldb::StateType | resume_state | ) |
Definition at line 46 of file NativeThreadWindows.cpp.
References lldb_private::NativeRegisterContext::ConvertRegisterKindToRegisterNumber(), lldb::eErrorTypeWin32, lldb::eRegisterKindGeneric, lldb::eStateRunning, lldb::eStateStepping, lldb_private::NativeProcessProtocol::GetArchitecture(), lldb_private::GetLog(), lldb_private::ArchSpec::GetMachine(), lldb_private::HostThread::GetNativeThread(), lldb_private::NativeThreadProtocol::GetProcess(), GetRegisterContext(), GetState(), lldb_private::HostNativeThreadBase::GetSystemHandle(), LLDB_LOG, LLDB_REGNUM_GENERIC_FLAGS, m_host_thread, m_state, lldb_private::NativeRegisterContext::ReadRegisterAsUnsigned(), lldb_private::Thread, and lldb_private::NativeRegisterContext::WriteRegisterFromUnsigned().
Status NativeThreadWindows::DoStop | ( | ) |
Definition at line 34 of file NativeThreadWindows.cpp.
References lldb::eErrorTypeWin32, lldb::eStateStopped, lldb_private::HostThread::GetNativeThread(), lldb_private::HostNativeThreadBase::GetSystemHandle(), m_host_thread, and m_state.
|
inline |
Definition at line 53 of file NativeThreadWindows.h.
References m_host_thread.
Referenced by lldb_private::NativeRegisterContextWindows::GetThreadHandle().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 98 of file NativeThreadWindows.cpp.
References lldb_private::NativeProcessProtocol::GetID(), lldb_private::ProcessInfo::GetName(), lldb_private::NativeThreadProtocol::GetProcess(), lldb_private::Host::GetProcessInfo(), and m_name.
|
inlineoverridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 35 of file NativeThreadWindows.h.
References m_reg_context_up.
Referenced by DoResume().
|
inlineoverridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 33 of file NativeThreadWindows.h.
References m_state.
Referenced by DoResume().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 120 of file NativeThreadWindows.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(), m_state, m_stop_description, m_stop_info, lldb_private::Log::Printf(), lldb_private::StateAsCString(), and lldb_private::Thread.
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 184 of file NativeThreadWindows.cpp.
References lldb_private::Status::FromErrorString().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 168 of file NativeThreadWindows.cpp.
References lldb_private::Status::FromErrorString(), m_reg_context_up, and m_watchpoint_index_map.
Referenced by SetWatchpoint().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 179 of file NativeThreadWindows.cpp.
References lldb_private::Status::FromErrorString().
void NativeThreadWindows::SetStopReason | ( | ThreadStopInfo | stop_info, |
std::string | description | ||
) |
Definition at line 113 of file NativeThreadWindows.cpp.
References lldb::eStateStopped, m_state, m_stop_description, and m_stop_info.
Referenced by lldb_private::NativeProcessWindows::SetStopReasonForThread().
|
overridevirtual |
Implements lldb_private::NativeThreadProtocol.
Definition at line 151 of file NativeThreadWindows.cpp.
References error(), lldb::eStateLaunching, lldb_private::Status::FromErrorString(), LLDB_INVALID_INDEX32, m_reg_context_up, m_state, m_watchpoint_index_map, and RemoveWatchpoint().
|
protected |
Definition at line 66 of file NativeThreadWindows.h.
Referenced by DoResume(), DoStop(), and GetHostThread().
|
protected |
Definition at line 65 of file NativeThreadWindows.h.
|
protected |
Definition at line 57 of file NativeThreadWindows.h.
Referenced by GetName().
|
protected |
Definition at line 60 of file NativeThreadWindows.h.
Referenced by GetRegisterContext(), NativeThreadWindows(), RemoveWatchpoint(), and SetWatchpoint().
|
protected |
Definition at line 56 of file NativeThreadWindows.h.
Referenced by DoResume(), DoStop(), GetState(), GetStopReason(), SetStopReason(), and SetWatchpoint().
|
protected |
Definition at line 59 of file NativeThreadWindows.h.
Referenced by GetStopReason(), and SetStopReason().
|
protected |
Definition at line 58 of file NativeThreadWindows.h.
Referenced by GetStopReason(), and SetStopReason().
|
protected |
Definition at line 64 of file NativeThreadWindows.h.
Referenced by RemoveWatchpoint(), and SetWatchpoint().