LLDB mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBBreakpoint Class Reference

#include <SBBreakpoint.h>

Public Member Functions

 SBBreakpoint ()
 
 SBBreakpoint (const lldb::SBBreakpoint &rhs)
 
 ~SBBreakpoint ()
 
const lldb::SBBreakpointoperator= (const lldb::SBBreakpoint &rhs)
 
bool operator== (const lldb::SBBreakpoint &rhs)
 
bool operator!= (const lldb::SBBreakpoint &rhs)
 
break_id_t GetID () const
 
 operator bool () const
 
bool IsValid () const
 
void ClearAllBreakpointSites ()
 
lldb::SBTarget GetTarget () const
 
lldb::SBBreakpointLocation FindLocationByAddress (lldb::addr_t vm_addr)
 
lldb::break_id_t FindLocationIDByAddress (lldb::addr_t vm_addr)
 
lldb::SBBreakpointLocation FindLocationByID (lldb::break_id_t bp_loc_id)
 
lldb::SBBreakpointLocation GetLocationAtIndex (uint32_t index)
 
void SetEnabled (bool enable)
 
bool IsEnabled ()
 
void SetOneShot (bool one_shot)
 
bool IsOneShot () const
 
bool IsInternal ()
 
uint32_t GetHitCount () const
 
void SetIgnoreCount (uint32_t count)
 
uint32_t GetIgnoreCount () const
 
void SetCondition (const char *condition)
 
const char * GetCondition ()
 
void SetAutoContinue (bool auto_continue)
 
bool GetAutoContinue ()
 
void SetThreadID (lldb::tid_t sb_thread_id)
 
lldb::tid_t GetThreadID ()
 
void SetThreadIndex (uint32_t index)
 
uint32_t GetThreadIndex () const
 
void SetThreadName (const char *thread_name)
 
const char * GetThreadName () const
 
void SetQueueName (const char *queue_name)
 
const char * GetQueueName () const
 
void SetCallback (SBBreakpointHitCallback callback, void *baton)
 
void SetScriptCallbackFunction (const char *callback_function_name)
 
SBError SetScriptCallbackFunction (const char *callback_function_name, SBStructuredData &extra_args)
 
void SetCommandLineCommands (SBStringList &commands)
 
bool GetCommandLineCommands (SBStringList &commands)
 
SBError SetScriptCallbackBody (const char *script_body_text)
 
 LLDB_DEPRECATED_FIXME ("Doesn't provide error handling", "AddNameWithErrorHandling") bool AddName(const char *new_name)
 
SBError AddNameWithErrorHandling (const char *new_name)
 
void RemoveName (const char *name_to_remove)
 
bool MatchesName (const char *name)
 
void GetNames (SBStringList &names)
 
size_t GetNumResolvedLocations () const
 
size_t GetNumLocations () const
 
bool GetDescription (lldb::SBStream &description)
 
bool GetDescription (lldb::SBStream &description, bool include_locations)
 
bool IsHardware () const
 
SBError AddLocation (SBAddress &address)
 
SBStructuredData SerializeToStructuredData ()
 

Static Public Member Functions

static bool EventIsBreakpointEvent (const lldb::SBEvent &event)
 
static lldb::BreakpointEventType GetBreakpointEventTypeFromEvent (const lldb::SBEvent &event)
 
static lldb::SBBreakpoint GetBreakpointFromEvent (const lldb::SBEvent &event)
 
static lldb::SBBreakpointLocation GetBreakpointLocationAtIndexFromEvent (const lldb::SBEvent &event, uint32_t loc_idx)
 
static uint32_t GetNumBreakpointLocationsFromEvent (const lldb::SBEvent &event_sp)
 

Private Member Functions

 SBBreakpoint (const lldb::BreakpointSP &bp_sp)
 
lldb::BreakpointSP GetSP () const
 

Private Attributes

lldb::BreakpointWP m_opaque_wp
 

Friends

class SBBreakpointList
 
class SBBreakpointLocation
 
class SBBreakpointName
 
class SBTarget
 
class lldb_private::ScriptInterpreter
 
class lldb_private::python::SWIGBridge
 

Detailed Description

Definition at line 25 of file SBBreakpoint.h.

Constructor & Destructor Documentation

◆ SBBreakpoint() [1/3]

SBBreakpoint::SBBreakpoint ( )

Definition at line 47 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA.

Referenced by GetBreakpointFromEvent().

◆ SBBreakpoint() [2/3]

SBBreakpoint::SBBreakpoint ( const lldb::SBBreakpoint rhs)

Definition at line 49 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBBreakpoint()

SBBreakpoint::~SBBreakpoint ( )
default

References lldb::operator==().

◆ SBBreakpoint() [3/3]

SBBreakpoint::SBBreakpoint ( const lldb::BreakpointSP bp_sp)
private

Definition at line 54 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA.

Member Function Documentation

◆ AddLocation()

SBError SBBreakpoint::AddLocation ( SBAddress address)

◆ AddNameWithErrorHandling()

SBError SBBreakpoint::AddNameWithErrorHandling ( const char *  new_name)

◆ ClearAllBreakpointSites()

void SBBreakpoint::ClearAllBreakpointSites ( )

Definition at line 117 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ EventIsBreakpointEvent()

bool SBBreakpoint::EventIsBreakpointEvent ( const lldb::SBEvent event)
static

◆ FindLocationByAddress()

SBBreakpointLocation SBBreakpoint::FindLocationByAddress ( lldb::addr_t  vm_addr)

◆ FindLocationByID()

SBBreakpointLocation SBBreakpoint::FindLocationByID ( lldb::break_id_t  bp_loc_id)

◆ FindLocationIDByAddress()

break_id_t SBBreakpoint::FindLocationIDByAddress ( lldb::addr_t  vm_addr)

◆ GetAutoContinue()

bool SBBreakpoint::GetAutoContinue ( )

Definition at line 305 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetBreakpointEventTypeFromEvent()

BreakpointEventType SBBreakpoint::GetBreakpointEventTypeFromEvent ( const lldb::SBEvent event)
static

◆ GetBreakpointFromEvent()

SBBreakpoint SBBreakpoint::GetBreakpointFromEvent ( const lldb::SBEvent event)
static

◆ GetBreakpointLocationAtIndexFromEvent()

SBBreakpointLocation SBBreakpoint::GetBreakpointLocationAtIndexFromEvent ( const lldb::SBEvent event,
uint32_t  loc_idx 
)
static

◆ GetCommandLineCommands()

bool SBBreakpoint::GetCommandLineCommands ( SBStringList commands)

Definition at line 496 of file SBBreakpoint.cpp.

References lldb::SBStringList::AppendList(), GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetCondition()

const char * SBBreakpoint::GetCondition ( )

◆ GetDescription() [1/2]

bool SBBreakpoint::GetDescription ( lldb::SBStream description)

Definition at line 510 of file SBBreakpoint.cpp.

References GetDescription(), and LLDB_INSTRUMENT_VA.

Referenced by GetDescription().

◆ GetDescription() [2/2]

bool SBBreakpoint::GetDescription ( lldb::SBStream description,
bool  include_locations 
)

Definition at line 516 of file SBBreakpoint.cpp.

References lldb::SBStream::get(), GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetHitCount()

uint32_t SBBreakpoint::GetHitCount ( ) const

Definition at line 317 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetID()

break_id_t SBBreakpoint::GetID ( ) const

Definition at line 90 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_BREAK_ID.

◆ GetIgnoreCount()

uint32_t SBBreakpoint::GetIgnoreCount ( ) const

Definition at line 331 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetLocationAtIndex()

SBBreakpointLocation SBBreakpoint::GetLocationAtIndex ( uint32_t  index)

◆ GetNames()

void SBBreakpoint::GetNames ( SBStringList names)

Definition at line 707 of file SBBreakpoint.cpp.

References lldb::SBStringList::AppendString(), GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetNumBreakpointLocationsFromEvent()

uint32_t SBBreakpoint::GetNumBreakpointLocationsFromEvent ( const lldb::SBEvent event_sp)
static

◆ GetNumLocations()

size_t SBBreakpoint::GetNumLocations ( ) const

Definition at line 466 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetNumResolvedLocations()

size_t SBBreakpoint::GetNumResolvedLocations ( ) const

Definition at line 453 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ GetQueueName()

const char * SBBreakpoint::GetQueueName ( ) const

◆ GetSP()

BreakpointSP SBBreakpoint::GetSP ( ) const
private

◆ GetTarget()

SBTarget SBBreakpoint::GetTarget ( ) const

Definition at line 80 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and SBTarget.

◆ GetThreadID()

lldb::tid_t SBBreakpoint::GetThreadID ( )

Definition at line 356 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and LLDB_INVALID_THREAD_ID.

◆ GetThreadIndex()

uint32_t SBBreakpoint::GetThreadIndex ( ) const

◆ GetThreadName()

const char * SBBreakpoint::GetThreadName ( ) const

◆ IsEnabled()

bool SBBreakpoint::IsEnabled ( )

Definition at line 211 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsHardware()

bool SBBreakpoint::IsHardware ( ) const

Definition at line 774 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsInternal()

bool SBBreakpoint::IsInternal ( )

Definition at line 247 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsOneShot()

bool SBBreakpoint::IsOneShot ( ) const

Definition at line 235 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ IsValid()

bool SBBreakpoint::IsValid ( ) const

◆ LLDB_DEPRECATED_FIXME()

lldb::SBBreakpoint::LLDB_DEPRECATED_FIXME ( "Doesn't provide error handling"  ,
"AddNameWithErrorHandling"   
) const

◆ MatchesName()

bool SBBreakpoint::MatchesName ( const char *  name)

Definition at line 693 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ operator bool()

SBBreakpoint::operator bool ( ) const
explicit

Definition at line 105 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBBreakpoint::operator!= ( const lldb::SBBreakpoint rhs)

Definition at line 74 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ operator=()

const SBBreakpoint & SBBreakpoint::operator= ( const lldb::SBBreakpoint rhs)

Definition at line 61 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ operator==()

bool SBBreakpoint::operator== ( const lldb::SBBreakpoint rhs)

Definition at line 68 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_wp.

◆ RemoveName()

void SBBreakpoint::RemoveName ( const char *  name_to_remove)

Definition at line 680 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SerializeToStructuredData()

SBStructuredData SBBreakpoint::SerializeToStructuredData ( )

Definition at line 569 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INSTRUMENT_VA, and lldb::SBStructuredData::m_impl_up.

◆ SetAutoContinue()

void SBBreakpoint::SetAutoContinue ( bool  auto_continue)

Definition at line 294 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetCallback()

void SBBreakpoint::SetCallback ( SBBreakpointHitCallback  callback,
void *  baton 
)

Definition at line 583 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetCommandLineCommands()

void SBBreakpoint::SetCommandLineCommands ( SBStringList commands)

◆ SetCondition()

void SBBreakpoint::SetCondition ( const char *  condition)

Definition at line 271 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetEnabled()

void SBBreakpoint::SetEnabled ( bool  enable)

Definition at line 199 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetIgnoreCount()

void SBBreakpoint::SetIgnoreCount ( uint32_t  count)

Definition at line 259 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetOneShot()

void SBBreakpoint::SetOneShot ( bool  one_shot)

Definition at line 223 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetQueueName()

void SBBreakpoint::SetQueueName ( const char *  queue_name)

Definition at line 426 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetScriptCallbackBody()

SBError SBBreakpoint::SetScriptCallbackBody ( const char *  script_body_text)

◆ SetScriptCallbackFunction() [1/2]

void SBBreakpoint::SetScriptCallbackFunction ( const char *  callback_function_name)

Definition at line 598 of file SBBreakpoint.cpp.

References LLDB_INSTRUMENT_VA, and SetScriptCallbackFunction().

Referenced by SetScriptCallbackFunction().

◆ SetScriptCallbackFunction() [2/2]

SBError SBBreakpoint::SetScriptCallbackFunction ( const char *  callback_function_name,
SBStructuredData extra_args 
)

◆ SetThreadID()

void SBBreakpoint::SetThreadID ( lldb::tid_t  sb_thread_id)

Definition at line 345 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetThreadIndex()

void SBBreakpoint::SetThreadIndex ( uint32_t  index)

Definition at line 370 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

◆ SetThreadName()

void SBBreakpoint::SetThreadName ( const char *  thread_name)

Definition at line 398 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_INSTRUMENT_VA.

Friends And Related Function Documentation

◆ lldb_private::python::SWIGBridge

friend class lldb_private::python::SWIGBridge
friend

Definition at line 164 of file SBBreakpoint.h.

◆ lldb_private::ScriptInterpreter

friend class lldb_private::ScriptInterpreter
friend

Definition at line 163 of file SBBreakpoint.h.

◆ SBBreakpointList

friend class SBBreakpointList
friend

Definition at line 158 of file SBBreakpoint.h.

◆ SBBreakpointLocation

friend class SBBreakpointLocation
friend

Definition at line 159 of file SBBreakpoint.h.

◆ SBBreakpointName

friend class SBBreakpointName
friend

Definition at line 160 of file SBBreakpoint.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 161 of file SBBreakpoint.h.

Referenced by GetTarget().

Member Data Documentation

◆ m_opaque_wp

lldb::BreakpointWP lldb::SBBreakpoint::m_opaque_wp
private

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