LLDB mainline
lldb_private::process_netbsd::NativeThreadNetBSD Class Reference

#include <NativeThreadNetBSD.h>

Inheritance diagram for lldb_private::process_netbsd::NativeThreadNetBSD:
[legend]

Public Member Functions

 NativeThreadNetBSD (NativeProcessNetBSD &process, lldb::tid_t tid)
std::string GetName () override
lldb::StateType GetState () override
bool GetStopReason (ThreadStopInfo &stop_info, std::string &description) override
NativeRegisterContextNetBSDGetRegisterContext () override
Status SetWatchpoint (lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware) override
Status RemoveWatchpoint (lldb::addr_t addr) override
Status SetHardwareBreakpoint (lldb::addr_t addr, size_t size) override
Status RemoveHardwareBreakpoint (lldb::addr_t addr) override
Public Member Functions inherited from lldb_private::NativeThreadProtocol
 NativeThreadProtocol (NativeProcessProtocol &process, lldb::tid_t tid)
virtual ~NativeThreadProtocol ()=default
lldb::tid_t GetID () const
NativeProcessProtocolGetProcess ()
virtual llvm::Expected< std::unique_ptr< llvm::MemoryBuffer > > GetSiginfo () const

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< NativeRegisterContextNetBSDm_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

Protected Attributes inherited from lldb_private::NativeThreadProtocol
NativeProcessProtocolm_process
lldb::tid_t m_tid

Detailed Description

Definition at line 25 of file NativeThreadNetBSD.h.

Member Typedef Documentation

◆ WatchpointIndexMap

Definition at line 77 of file NativeThreadNetBSD.h.

Constructor & Destructor Documentation

◆ NativeThreadNetBSD()

Member Function Documentation

◆ CopyWatchpointsFrom()

◆ GetName()

◆ GetRegisterContext()

◆ GetState()

lldb::StateType NativeThreadNetBSD::GetState ( )
overridevirtual

Implements lldb_private::NativeThreadProtocol.

Definition at line 225 of file NativeThreadNetBSD.cpp.

References m_state.

◆ GetStopReason()

◆ RemoveHardwareBreakpoint()

Status NativeThreadNetBSD::RemoveHardwareBreakpoint ( lldb::addr_t addr)
overridevirtual

◆ RemoveWatchpoint()

Status NativeThreadNetBSD::RemoveWatchpoint ( lldb::addr_t addr)
overridevirtual

◆ Resume()

◆ SetHardwareBreakpoint()

◆ SetRunning()

void NativeThreadNetBSD::SetRunning ( )
private

Definition at line 171 of file NativeThreadNetBSD.cpp.

References lldb::eStateRunning, lldb::eStopReasonNone, m_state, and m_stop_info.

Referenced by Resume().

◆ SetStepping()

void NativeThreadNetBSD::SetStepping ( )
private

Definition at line 176 of file NativeThreadNetBSD.cpp.

References lldb::eStateStepping, lldb::eStopReasonNone, m_state, and m_stop_info.

Referenced by SingleStep().

◆ SetStopped()

◆ SetStoppedByBreakpoint()

void NativeThreadNetBSD::SetStoppedByBreakpoint ( )
private

Definition at line 98 of file NativeThreadNetBSD.cpp.

References lldb::eStopReasonBreakpoint, m_stop_info, SetStopped(), and SIGTRAP.

◆ SetStoppedByExec()

void NativeThreadNetBSD::SetStoppedByExec ( )
private

◆ SetStoppedByFork()

void NativeThreadNetBSD::SetStoppedByFork ( lldb::pid_t child_pid,
lldb::tid_t child_tid )
private

◆ SetStoppedBySignal()

◆ SetStoppedByTrace()

void NativeThreadNetBSD::SetStoppedByTrace ( )
private

Definition at line 104 of file NativeThreadNetBSD.cpp.

References lldb::eStopReasonTrace, m_stop_info, SetStopped(), and SIGTRAP.

◆ SetStoppedByVFork()

void NativeThreadNetBSD::SetStoppedByVFork ( lldb::pid_t child_pid,
lldb::tid_t child_tid )
private

◆ SetStoppedByVForkDone()

void NativeThreadNetBSD::SetStoppedByVForkDone ( )
private

Definition at line 151 of file NativeThreadNetBSD.cpp.

References lldb::eStopReasonVForkDone, m_stop_info, SetStopped(), and SIGTRAP.

◆ SetStoppedByWatchpoint()

◆ SetStoppedWithNoReason()

void NativeThreadNetBSD::SetStoppedWithNoReason ( )
private

◆ SetWatchpoint()

◆ SingleStep()

◆ Suspend()

◆ NativeProcessNetBSD

friend class NativeProcessNetBSD
friend

Definition at line 26 of file NativeThreadNetBSD.h.

References NativeProcessNetBSD, and NativeThreadNetBSD().

Referenced by NativeProcessNetBSD, and NativeThreadNetBSD().

Member Data Documentation

◆ m_hw_break_index_map

WatchpointIndexMap lldb_private::process_netbsd::NativeThreadNetBSD::m_hw_break_index_map
private

◆ m_reg_context_up

std::unique_ptr<NativeRegisterContextNetBSD> lldb_private::process_netbsd::NativeThreadNetBSD::m_reg_context_up
private

Definition at line 75 of file NativeThreadNetBSD.h.

Referenced by GetRegisterContext(), and NativeThreadNetBSD().

◆ m_state

lldb::StateType lldb_private::process_netbsd::NativeThreadNetBSD::m_state
private

◆ m_stop_description

std::string lldb_private::process_netbsd::NativeThreadNetBSD::m_stop_description
private

◆ m_stop_info

◆ m_watchpoint_index_map

WatchpointIndexMap lldb_private::process_netbsd::NativeThreadNetBSD::m_watchpoint_index_map
private

Definition at line 78 of file NativeThreadNetBSD.h.

Referenced by CopyWatchpointsFrom(), RemoveWatchpoint(), and SetWatchpoint().


The documentation for this class was generated from the following files: