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>

Collaboration diagram for lldb::SBBreakpoint:
Collaboration graph
[legend]

Public Member Functions

 SBBreakpoint ()
 
 SBBreakpoint (const lldb::SBBreakpoint &rhs)
 
 SBBreakpoint (const lldb::BreakpointSP &bp_sp)
 
 ~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)
 
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

lldb::BreakpointSP GetSP () const
 

Private Attributes

lldb::BreakpointWP m_opaque_wp
 

Friends

class SBBreakpointList
 
class SBBreakpointLocation
 
class SBBreakpointName
 
class SBTarget
 

Detailed Description

Definition at line 18 of file SBBreakpoint.h.

Constructor & Destructor Documentation

◆ SBBreakpoint() [1/3]

SBBreakpoint::SBBreakpoint ( )

Definition at line 48 of file SBBreakpoint.cpp.

References LLDB_RECORD_CONSTRUCTOR_NO_ARGS.

Referenced by GetBreakpointFromEvent().

◆ SBBreakpoint() [2/3]

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

Definition at line 50 of file SBBreakpoint.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ SBBreakpoint() [3/3]

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

Definition at line 55 of file SBBreakpoint.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBBreakpoint()

SBBreakpoint::~SBBreakpoint ( )
default

Member Function Documentation

◆ AddLocation()

SBError SBBreakpoint::AddLocation ( SBAddress address)

◆ AddName()

bool SBBreakpoint::AddName ( const char *  new_name)

◆ AddNameWithErrorHandling()

SBError SBBreakpoint::AddNameWithErrorHandling ( const char *  new_name)

◆ ClearAllBreakpointSites()

void SBBreakpoint::ClearAllBreakpointSites ( )

Definition at line 121 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ EventIsBreakpointEvent()

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

Definition at line 749 of file SBBreakpoint.cpp.

References lldb::SBEvent::get(), and LLDB_RECORD_STATIC_METHOD.

◆ 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 315 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ 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 512 of file SBBreakpoint.cpp.

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

◆ GetCondition()

const char * SBBreakpoint::GetCondition ( )

Definition at line 291 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetDescription() [1/2]

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

Definition at line 527 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD.

Referenced by GetDescription().

◆ GetDescription() [2/2]

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

◆ GetHitCount()

uint32_t SBBreakpoint::GetHitCount ( ) const

Definition at line 327 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetID()

break_id_t SBBreakpoint::GetID ( ) const

Definition at line 94 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INVALID_BREAK_ID, and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetIgnoreCount()

uint32_t SBBreakpoint::GetIgnoreCount ( ) const

Definition at line 341 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetLocationAtIndex()

SBBreakpointLocation SBBreakpoint::GetLocationAtIndex ( uint32_t  index)

◆ GetNames()

void SBBreakpoint::GetNames ( SBStringList names)

◆ GetNumBreakpointLocationsFromEvent()

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

◆ GetNumLocations()

size_t SBBreakpoint::GetNumLocations ( ) const

Definition at line 481 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetNumResolvedLocations()

size_t SBBreakpoint::GetNumResolvedLocations ( ) const

Definition at line 467 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ GetQueueName()

const char * SBBreakpoint::GetQueueName ( ) const

◆ GetSP()

BreakpointSP SBBreakpoint::GetSP ( ) const
private

◆ GetTarget()

SBTarget SBBreakpoint::GetTarget ( ) const

◆ GetThreadID()

tid_t SBBreakpoint::GetThreadID ( )

Definition at line 366 of file SBBreakpoint.cpp.

References GetSP(), LLDB_INVALID_THREAD_ID, and LLDB_RECORD_METHOD_NO_ARGS.

◆ GetThreadIndex()

uint32_t SBBreakpoint::GetThreadIndex ( ) const

◆ GetThreadName()

const char * SBBreakpoint::GetThreadName ( ) const

◆ IsEnabled()

bool SBBreakpoint::IsEnabled ( )

Definition at line 219 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsHardware()

bool SBBreakpoint::IsHardware ( ) const

Definition at line 810 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ IsInternal()

bool SBBreakpoint::IsInternal ( )

Definition at line 255 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_NO_ARGS.

◆ IsOneShot()

bool SBBreakpoint::IsOneShot ( ) const

Definition at line 243 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ IsValid()

bool SBBreakpoint::IsValid ( ) const

◆ MatchesName()

bool SBBreakpoint::MatchesName ( const char *  name)

Definition at line 718 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ operator bool()

SBBreakpoint::operator bool ( ) const
explicit

Definition at line 109 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator!=()

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

Definition at line 77 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD, and m_opaque_wp.

◆ operator=()

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

Definition at line 62 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD, LLDB_RECORD_RESULT, and m_opaque_wp.

◆ operator==()

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

Definition at line 70 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD, and m_opaque_wp.

◆ RemoveName()

void SBBreakpoint::RemoveName ( const char *  name_to_remove)

Definition at line 704 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SerializeToStructuredData()

SBStructuredData SBBreakpoint::SerializeToStructuredData ( )

◆ SetAutoContinue()

void SBBreakpoint::SetAutoContinue ( bool  auto_continue)

Definition at line 303 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetCallback()

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

Definition at line 603 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_DUMMY.

◆ SetCommandLineCommands()

void SBBreakpoint::SetCommandLineCommands ( SBStringList commands)

◆ SetCondition()

void SBBreakpoint::SetCondition ( const char *  condition)

Definition at line 279 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetEnabled()

void SBBreakpoint::SetEnabled ( bool  enable)

Definition at line 207 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetIgnoreCount()

void SBBreakpoint::SetIgnoreCount ( uint32_t  count)

Definition at line 267 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetOneShot()

void SBBreakpoint::SetOneShot ( bool  one_shot)

Definition at line 231 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetQueueName()

void SBBreakpoint::SetQueueName ( const char *  queue_name)

Definition at line 438 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetScriptCallbackBody()

SBError SBBreakpoint::SetScriptCallbackBody ( const char *  script_body_text)

◆ SetScriptCallbackFunction() [1/2]

void SBBreakpoint::SetScriptCallbackFunction ( const char *  callback_function_name)

Definition at line 619 of file SBBreakpoint.cpp.

References LLDB_RECORD_METHOD.

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 355 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetThreadIndex()

void SBBreakpoint::SetThreadIndex ( uint32_t  index)

Definition at line 380 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

◆ SetThreadName()

void SBBreakpoint::SetThreadName ( const char *  thread_name)

Definition at line 408 of file SBBreakpoint.cpp.

References GetSP(), and LLDB_RECORD_METHOD.

Friends And Related Function Documentation

◆ SBBreakpointList

friend class SBBreakpointList
friend

Definition at line 149 of file SBBreakpoint.h.

◆ SBBreakpointLocation

friend class SBBreakpointLocation
friend

Definition at line 150 of file SBBreakpoint.h.

◆ SBBreakpointName

friend class SBBreakpointName
friend

Definition at line 151 of file SBBreakpoint.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 152 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: