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]

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
 
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.
 
lldb::addr_t m_addr
 The load address of this stop point.
 
bool m_is_hardware_required
 True if this point is required to use hardware (which may fail due to the lack of resources).
 
uint32_t m_byte_size
 The size in bytes of stoppoint, e.g.
 
StoppointHitCounter m_hit_counter
 Number of times this breakpoint/watchpoint has been hit.
 

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]

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

◆ StoppointSite() [2/4]

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

◆ ~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

Definition at line 31 of file StoppointSite.h.

References m_byte_size.

Referenced by lldb_private::Process::DisableSoftwareBreakpoint().

◆ 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().

◆ 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 52 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 61 of file StoppointSite.h.

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

◆ m_hit_counter

StoppointHitCounter lldb_private::StoppointSite::m_hit_counter
protected

Number of times this breakpoint/watchpoint has been hit.

Definition at line 64 of file StoppointSite.h.

Referenced by GetHitCount(), ResetHitCount(), lldb_private::BreakpointSite::ShouldStop(), lldb_private::Watchpoint::ShouldStop(), and lldb_private::Watchpoint::UndoHitCount().

◆ m_id

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

Stoppoint site ID.

Definition at line 49 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 56 of file StoppointSite.h.

Referenced by HardwareRequired().


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