LLDB  mainline
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
lldb_private::StoppointSite Class Referenceabstract

#include <StoppointSite.h>

Inheritance diagram for lldb_private::StoppointSite:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::StoppointSite:
Collaboration graph
[legend]

Public Member Functions

 StoppointSite (lldb::break_id_t bid, lldb::addr_t m_addr, bool hardware)
 
 StoppointSite (lldb::break_id_t bid, lldb::addr_t m_addr, uint32_t byte_size, bool hardware)
 
virtual ~StoppointSite ()=default
 
virtual lldb::addr_t GetLoadAddress () const
 
virtual void SetLoadAddress (lldb::addr_t addr)
 
uint32_t GetByteSize () const
 
uint32_t GetHitCount () const
 
void ResetHitCount ()
 
bool HardwareRequired () const
 
virtual bool IsHardware () const =0
 
uint32_t GetHardwareIndex () const
 
void SetHardwareIndex (uint32_t index)
 
virtual bool ShouldStop (StoppointCallbackContext *context)=0
 
virtual void Dump (Stream *stream) const =0
 
lldb::break_id_t GetID () const
 

Protected Attributes

lldb::break_id_t m_id
 Stoppoint site ID. More...
 
lldb::addr_t m_addr
 The load address of this stop point. More...
 
bool m_is_hardware_required
 True if this point is required to use hardware (which may fail due to the lack of resources). More...
 
uint32_t m_hardware_index
 The hardware resource index for this breakpoint/watchpoint. More...
 
uint32_t m_byte_size
 The size in bytes of stoppoint, e.g. More...
 
StoppointHitCounter m_hit_counter
 Number of times this breakpoint/watchpoint has been hit. More...
 

Private Member Functions

 StoppointSite (const StoppointSite &)=delete
 
const StoppointSiteoperator= (const StoppointSite &)=delete
 
 StoppointSite ()=delete
 

Detailed Description

Definition at line 18 of file StoppointSite.h.

Constructor & Destructor Documentation

◆ StoppointSite() [1/4]

StoppointSite::StoppointSite ( lldb::break_id_t  bid,
lldb::addr_t  m_addr,
bool  hardware 
)

Definition at line 15 of file StoppointSite.cpp.

◆ StoppointSite() [2/4]

StoppointSite::StoppointSite ( lldb::break_id_t  bid,
lldb::addr_t  m_addr,
uint32_t  byte_size,
bool  hardware 
)

Definition at line 19 of file StoppointSite.cpp.

◆ ~StoppointSite()

virtual lldb_private::StoppointSite::~StoppointSite ( )
virtualdefault

◆ StoppointSite() [3/4]

lldb_private::StoppointSite::StoppointSite ( const StoppointSite )
privatedelete

◆ StoppointSite() [4/4]

lldb_private::StoppointSite::StoppointSite ( )
privatedelete

Member Function Documentation

◆ Dump()

virtual void lldb_private::StoppointSite::Dump ( Stream stream) const
pure virtual

◆ GetByteSize()

uint32_t lldb_private::StoppointSite::GetByteSize ( ) const
inline

◆ GetHardwareIndex()

uint32_t lldb_private::StoppointSite::GetHardwareIndex ( ) const
inline

◆ GetHitCount()

uint32_t lldb_private::StoppointSite::GetHitCount ( ) const
inline

◆ GetID()

lldb::break_id_t lldb_private::StoppointSite::GetID ( ) const
inline

◆ GetLoadAddress()

virtual lldb::addr_t lldb_private::StoppointSite::GetLoadAddress ( ) const
inlinevirtual

◆ HardwareRequired()

bool lldb_private::StoppointSite::HardwareRequired ( ) const
inline

◆ IsHardware()

virtual bool lldb_private::StoppointSite::IsHardware ( ) const
pure virtual

◆ operator=()

const StoppointSite& lldb_private::StoppointSite::operator= ( const StoppointSite )
privatedelete

◆ ResetHitCount()

void lldb_private::StoppointSite::ResetHitCount ( )
inline

Definition at line 35 of file StoppointSite.h.

References m_hit_counter, and lldb_private::StoppointHitCounter::Reset().

◆ SetHardwareIndex()

void lldb_private::StoppointSite::SetHardwareIndex ( uint32_t  index)
inline

◆ SetLoadAddress()

virtual void lldb_private::StoppointSite::SetLoadAddress ( lldb::addr_t  addr)
inlinevirtual

Definition at line 29 of file StoppointSite.h.

References m_addr.

◆ ShouldStop()

virtual bool lldb_private::StoppointSite::ShouldStop ( StoppointCallbackContext context)
pure virtual

Member Data Documentation

◆ m_addr

lldb::addr_t lldb_private::StoppointSite::m_addr
protected

The load address of this stop point.

Definition at line 56 of file StoppointSite.h.

Referenced by lldb_private::BreakpointSite::Dump(), GetLoadAddress(), lldb_private::BreakpointSite::IntersectsRange(), and SetLoadAddress().

◆ m_byte_size

uint32_t lldb_private::StoppointSite::m_byte_size
protected

The size in bytes of stoppoint, e.g.

the length of the trap opcode for software breakpoints, or the optional length in bytes for hardware breakpoints, or the length of the watchpoint.

Definition at line 68 of file StoppointSite.h.

Referenced by lldb_private::Watchpoint::DumpWithLevel(), GetByteSize(), lldb_private::BreakpointSite::IntersectsRange(), and lldb_private::BreakpointSite::SetTrapOpcode().

◆ m_hardware_index

uint32_t lldb_private::StoppointSite::m_hardware_index
protected

The hardware resource index for this breakpoint/watchpoint.

Definition at line 63 of file StoppointSite.h.

Referenced by GetHardwareIndex(), and SetHardwareIndex().

◆ m_hit_counter

StoppointHitCounter lldb_private::StoppointSite::m_hit_counter
protected

◆ m_id

lldb::break_id_t lldb_private::StoppointSite::m_id
protected

Stoppoint site ID.

Definition at line 53 of file StoppointSite.h.

Referenced by GetID(), and lldb_private::Watchpoint::SetID().

◆ m_is_hardware_required

bool lldb_private::StoppointSite::m_is_hardware_required
protected

True if this point is required to use hardware (which may fail due to the lack of resources).

Definition at line 60 of file StoppointSite.h.

Referenced by HardwareRequired().


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