LLDB mainline
lldb_private::process_freebsd::NativeThreadFreeBSD Class Reference

#include <NativeThreadFreeBSD.h>

Inheritance diagram for lldb_private::process_freebsd::NativeThreadFreeBSD:
[legend]

Public Member Functions

 NativeThreadFreeBSD (NativeProcessFreeBSD &process, lldb::tid_t tid)
std::string GetName () override
lldb::StateType GetState () override
bool GetStopReason (ThreadStopInfo &stop_info, std::string &description) override
NativeRegisterContextFreeBSDGetRegisterContext () 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
NativeProcessFreeBSDGetProcess ()
llvm::Expected< std::unique_ptr< llvm::MemoryBuffer > > GetSiginfo () const 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 ()

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 (NativeThreadFreeBSD &source)

Private Attributes

lldb::StateType m_state
ThreadStopInfo m_stop_info
std::unique_ptr< NativeRegisterContextFreeBSDm_reg_context_up
std::string m_stop_description
WatchpointIndexMap m_watchpoint_index_map
WatchpointIndexMap m_hw_break_index_map

Friends

class NativeProcessFreeBSD

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 NativeThreadFreeBSD.h.

Member Typedef Documentation

◆ WatchpointIndexMap

Constructor & Destructor Documentation

◆ NativeThreadFreeBSD()

Member Function Documentation

◆ CopyWatchpointsFrom()

◆ GetName()

◆ GetProcess()

NativeProcessFreeBSD & NativeThreadFreeBSD::GetProcess ( )

◆ GetRegisterContext()

◆ GetSiginfo()

llvm::Expected< std::unique_ptr< llvm::MemoryBuffer > > NativeThreadFreeBSD::GetSiginfo ( ) const
overridevirtual

◆ GetState()

lldb::StateType NativeThreadFreeBSD::GetState ( )
overridevirtual

Implements lldb_private::NativeThreadProtocol.

Definition at line 214 of file NativeThreadFreeBSD.cpp.

References m_state.

◆ GetStopReason()

◆ RemoveHardwareBreakpoint()

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

◆ RemoveWatchpoint()

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

◆ Resume()

◆ SetHardwareBreakpoint()

◆ SetRunning()

void NativeThreadFreeBSD::SetRunning ( )
private

Definition at line 172 of file NativeThreadFreeBSD.cpp.

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

Referenced by Resume().

◆ SetStepping()

void NativeThreadFreeBSD::SetStepping ( )
private

Definition at line 177 of file NativeThreadFreeBSD.cpp.

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

Referenced by SingleStep().

◆ SetStopped()

◆ SetStoppedByBreakpoint()

void NativeThreadFreeBSD::SetStoppedByBreakpoint ( )
private

◆ SetStoppedByExec()

void NativeThreadFreeBSD::SetStoppedByExec ( )
private

◆ SetStoppedByFork()

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

◆ SetStoppedBySignal()

◆ SetStoppedByTrace()

void NativeThreadFreeBSD::SetStoppedByTrace ( )
private

Definition at line 105 of file NativeThreadFreeBSD.cpp.

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

◆ SetStoppedByVFork()

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

◆ SetStoppedByVForkDone()

void NativeThreadFreeBSD::SetStoppedByVForkDone ( )
private

◆ SetStoppedByWatchpoint()

◆ SetStoppedWithNoReason()

void NativeThreadFreeBSD::SetStoppedWithNoReason ( )
private

◆ SetWatchpoint()

◆ SingleStep()

◆ Suspend()

◆ NativeProcessFreeBSD

friend class NativeProcessFreeBSD
friend

Member Data Documentation

◆ m_hw_break_index_map

WatchpointIndexMap lldb_private::process_freebsd::NativeThreadFreeBSD::m_hw_break_index_map
private

◆ m_reg_context_up

std::unique_ptr<NativeRegisterContextFreeBSD> lldb_private::process_freebsd::NativeThreadFreeBSD::m_reg_context_up
private

Definition at line 80 of file NativeThreadFreeBSD.h.

Referenced by GetRegisterContext(), and NativeThreadFreeBSD().

◆ m_state

lldb::StateType lldb_private::process_freebsd::NativeThreadFreeBSD::m_state
private

◆ m_stop_description

std::string lldb_private::process_freebsd::NativeThreadFreeBSD::m_stop_description
private

◆ m_stop_info

◆ m_watchpoint_index_map

WatchpointIndexMap lldb_private::process_freebsd::NativeThreadFreeBSD::m_watchpoint_index_map
private

Definition at line 83 of file NativeThreadFreeBSD.h.

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


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