LLDB  mainline
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
lldb_private::process_darwin::NativeThreadListDarwin Class Reference

#include <NativeThreadListDarwin.h>

Collaboration diagram for lldb_private::process_darwin::NativeThreadListDarwin:
Collaboration graph
[legend]

Public Member Functions

 NativeThreadListDarwin ()
 
 ~NativeThreadListDarwin ()
 
void Clear ()
 
void Dump (Stream &stream) const
 
const char * GetThreadInfo (lldb::tid_t tid) const
 
void ProcessWillResume (NativeProcessDarwin &process, const ResumeActionList &thread_actions)
 
uint32_t ProcessDidStop (NativeProcessDarwin &process)
 
bool NotifyException (MachException::Data &exc)
 
bool ShouldStop (bool &step_more)
 
size_t GetNumberOfThreads () const
 
lldb::tid_t ThreadIDAtIndex (size_t idx) const
 
lldb::tid_t GetCurrentThreadID ()
 
NativeThreadDarwinSP GetCurrentThread ()
 
void NotifyBreakpointChanged (const NativeBreakpointDarwin *bp)
 
uint32_t EnableHardwareBreakpoint (const NativeBreakpointDarwin *bp) const
 
bool DisableHardwareBreakpoint (const NativeBreakpointDarwin *bp) const
 
uint32_t EnableHardwareWatchpoint (const NativeBreakpointDarwin *wp) const
 
bool DisableHardwareWatchpoint (const NativeBreakpointDarwin *wp) const
 
uint32_t GetNumberOfSupportedHardwareWatchpoints () const
 
size_t GetThreadIndexForThreadStoppedWithSignal (const int signo) const
 
NativeThreadDarwinSP GetThreadByID (lldb::tid_t tid) const
 
NativeThreadDarwinSP GetThreadByMachPortNumber (::thread_t mach_port_number) const
 
lldb::tid_t GetThreadIDByMachPortNumber (::thread_t mach_port_number) const
 
thread_t GetMachPortNumberByThreadID (lldb::tid_t globally_unique_id) const
 

Protected Types

typedef std::vector< NativeThreadDarwinSPcollection
 
typedef collection::iterator iterator
 
typedef collection::const_iterator const_iterator
 

Protected Member Functions

uint32_t UpdateThreadList (NativeProcessDarwin &process, bool update, collection *num_threads=nullptr)
 

Protected Attributes

collection m_threads
 
std::recursive_mutex m_threads_mutex
 
NativeThreadDarwinSP m_current_thread
 
bool m_is_64_bit
 

Detailed Description

Definition at line 37 of file NativeThreadListDarwin.h.

Member Typedef Documentation

◆ collection

Definition at line 121 of file NativeThreadListDarwin.h.

◆ const_iterator

typedef collection::const_iterator lldb_private::process_darwin::NativeThreadListDarwin::const_iterator
protected

Definition at line 123 of file NativeThreadListDarwin.h.

◆ iterator

Definition at line 122 of file NativeThreadListDarwin.h.

Constructor & Destructor Documentation

◆ NativeThreadListDarwin()

NativeThreadListDarwin::NativeThreadListDarwin ( )

Definition at line 34 of file NativeThreadListDarwin.cpp.

◆ ~NativeThreadListDarwin()

NativeThreadListDarwin::~NativeThreadListDarwin ( )

Member Function Documentation

◆ Clear()

void NativeThreadListDarwin::Clear ( )

Definition at line 293 of file NativeThreadListDarwin.cpp.

References m_threads, and m_threads_mutex.

◆ DisableHardwareBreakpoint()

bool lldb_private::process_darwin::NativeThreadListDarwin::DisableHardwareBreakpoint ( const NativeBreakpointDarwin *  bp) const

Referenced by ShouldStop().

◆ DisableHardwareWatchpoint()

bool lldb_private::process_darwin::NativeThreadListDarwin::DisableHardwareWatchpoint ( const NativeBreakpointDarwin *  wp) const

Referenced by ShouldStop().

◆ Dump()

void NativeThreadListDarwin::Dump ( Stream stream) const

◆ EnableHardwareBreakpoint()

uint32_t lldb_private::process_darwin::NativeThreadListDarwin::EnableHardwareBreakpoint ( const NativeBreakpointDarwin *  bp) const

Referenced by ShouldStop().

◆ EnableHardwareWatchpoint()

uint32_t lldb_private::process_darwin::NativeThreadListDarwin::EnableHardwareWatchpoint ( const NativeBreakpointDarwin *  wp) const

Referenced by ShouldStop().

◆ GetCurrentThread()

NativeThreadDarwinSP lldb_private::process_darwin::NativeThreadListDarwin::GetCurrentThread ( )

◆ GetCurrentThreadID()

lldb::tid_t lldb_private::process_darwin::NativeThreadListDarwin::GetCurrentThreadID ( )

◆ GetMachPortNumberByThreadID()

thread_t lldb_private::process_darwin::NativeThreadListDarwin::GetMachPortNumberByThreadID ( lldb::tid_t  globally_unique_id) const

◆ GetNumberOfSupportedHardwareWatchpoints()

uint32_t lldb_private::process_darwin::NativeThreadListDarwin::GetNumberOfSupportedHardwareWatchpoints ( ) const

◆ GetNumberOfThreads()

size_t NativeThreadListDarwin::GetNumberOfThreads ( ) const

Definition at line 256 of file NativeThreadListDarwin.cpp.

References m_threads, m_threads_mutex, and ThreadIDAtIndex().

◆ GetThreadByID()

NativeThreadDarwinSP NativeThreadListDarwin::GetThreadByID ( lldb::tid_t  tid) const

◆ GetThreadByMachPortNumber()

NativeThreadDarwinSP NativeThreadListDarwin::GetThreadByMachPortNumber ( ::thread_t  mach_port_number) const

Definition at line 161 of file NativeThreadListDarwin.cpp.

References m_threads, and m_threads_mutex.

Referenced by NotifyException().

◆ GetThreadIDByMachPortNumber()

lldb::tid_t NativeThreadListDarwin::GetThreadIDByMachPortNumber ( ::thread_t  mach_port_number) const

◆ GetThreadIndexForThreadStoppedWithSignal()

size_t lldb_private::process_darwin::NativeThreadListDarwin::GetThreadIndexForThreadStoppedWithSignal ( const int  signo) const

Referenced by ShouldStop().

◆ GetThreadInfo()

const char* lldb_private::process_darwin::NativeThreadListDarwin::GetThreadInfo ( lldb::tid_t  tid) const

Referenced by ~NativeThreadListDarwin().

◆ NotifyBreakpointChanged()

void lldb_private::process_darwin::NativeThreadListDarwin::NotifyBreakpointChanged ( const NativeBreakpointDarwin *  bp)

Referenced by ShouldStop().

◆ NotifyException()

bool NativeThreadListDarwin::NotifyException ( MachException::Data exc)

◆ ProcessDidStop()

uint32_t NativeThreadListDarwin::ProcessDidStop ( NativeProcessDarwin process)

Definition at line 538 of file NativeThreadListDarwin.cpp.

References m_threads, m_threads_mutex, and UpdateThreadList().

◆ ProcessWillResume()

void NativeThreadListDarwin::ProcessWillResume ( NativeProcessDarwin process,
const ResumeActionList thread_actions 
)

◆ ShouldStop()

bool NativeThreadListDarwin::ShouldStop ( bool &  step_more)

◆ ThreadIDAtIndex()

lldb::tid_t lldb_private::process_darwin::NativeThreadListDarwin::ThreadIDAtIndex ( size_t  idx) const

Referenced by GetNumberOfThreads().

◆ UpdateThreadList()

uint32_t NativeThreadListDarwin::UpdateThreadList ( NativeProcessDarwin process,
bool  update,
collection num_threads = nullptr 
)
protected

Member Data Documentation

◆ m_current_thread

NativeThreadDarwinSP lldb_private::process_darwin::NativeThreadListDarwin::m_current_thread
protected

Definition at line 131 of file NativeThreadListDarwin.h.

Referenced by UpdateThreadList(), and ~NativeThreadListDarwin().

◆ m_is_64_bit

bool lldb_private::process_darwin::NativeThreadListDarwin::m_is_64_bit
protected

Definition at line 132 of file NativeThreadListDarwin.h.

Referenced by UpdateThreadList().

◆ m_threads

collection lldb_private::process_darwin::NativeThreadListDarwin::m_threads
protected

◆ m_threads_mutex

std::recursive_mutex lldb_private::process_darwin::NativeThreadListDarwin::m_threads_mutex
mutableprotected

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