LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
lldb_private::BreakpointID Class Reference

#include <BreakpointID.h>

Collaboration diagram for lldb_private::BreakpointID:
Collaboration graph
[legend]

Public Member Functions

 BreakpointID (lldb::break_id_t bp_id=LLDB_INVALID_BREAK_ID, lldb::break_id_t loc_id=LLDB_INVALID_BREAK_ID)
 
virtual ~BreakpointID ()
 
lldb::break_id_t GetBreakpointID () const
 
lldb::break_id_t GetLocationID () const
 
void SetID (lldb::break_id_t bp_id, lldb::break_id_t loc_id)
 
void SetBreakpointID (lldb::break_id_t bp_id)
 
void SetBreakpointLocationID (lldb::break_id_t loc_id)
 
void GetDescription (Stream *s, lldb::DescriptionLevel level)
 

Static Public Member Functions

static bool IsRangeIdentifier (llvm::StringRef str)
 
static bool IsValidIDExpression (llvm::StringRef str)
 
static llvm::ArrayRef< llvm::StringRef > GetRangeSpecifiers ()
 
static llvm::Optional< BreakpointIDParseCanonicalReference (llvm::StringRef input)
 Takes an input string containing the description of a breakpoint or breakpoint and location and returns a BreakpointID filled out with the proper id and location. More...
 
static bool StringIsBreakpointName (llvm::StringRef str, Status &error)
 Takes an input string and checks to see whether it is a breakpoint name. More...
 
static void GetCanonicalReference (Stream *s, lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
 Takes a breakpoint ID and the breakpoint location id and returns a string containing the canonical description for the breakpoint or breakpoint location. More...
 

Protected Attributes

lldb::break_id_t m_break_id
 
lldb::break_id_t m_location_id
 

Detailed Description

Definition at line 23 of file BreakpointID.h.

Constructor & Destructor Documentation

◆ BreakpointID()

BreakpointID::BreakpointID ( lldb::break_id_t  bp_id = LLDB_INVALID_BREAK_ID,
lldb::break_id_t  loc_id = LLDB_INVALID_BREAK_ID 
)

Definition at line 19 of file BreakpointID.cpp.

References ~BreakpointID().

Referenced by ParseCanonicalReference().

◆ ~BreakpointID()

BreakpointID::~BreakpointID ( )
virtualdefault

Referenced by BreakpointID().

Member Function Documentation

◆ GetBreakpointID()

lldb::break_id_t lldb_private::BreakpointID::GetBreakpointID ( ) const
inline

◆ GetCanonicalReference()

void BreakpointID::GetCanonicalReference ( Stream s,
lldb::break_id_t  break_id,
lldb::break_id_t  break_loc_id 
)
static

Takes a breakpoint ID and the breakpoint location id and returns a string containing the canonical description for the breakpoint or breakpoint location.

Parameters
[out]break_idThis is the break id.
[out]break_loc_idThis is breakpoint location id, or LLDB_INVALID_BREAK_ID is no location is to be specified.

Definition at line 60 of file BreakpointID.cpp.

References LLDB_INVALID_BREAK_ID, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().

Referenced by lldb_private::CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint(), lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), lldb_private::BreakpointLocation::GetDescription(), and SetBreakpointLocationID().

◆ GetDescription()

void BreakpointID::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
)

◆ GetLocationID()

lldb::break_id_t lldb_private::BreakpointID::GetLocationID ( ) const
inline

◆ GetRangeSpecifiers()

llvm::ArrayRef< llvm::StringRef > BreakpointID::GetRangeSpecifiers ( )
static

◆ IsRangeIdentifier()

bool BreakpointID::IsRangeIdentifier ( llvm::StringRef  str)
static

◆ IsValidIDExpression()

bool BreakpointID::IsValidIDExpression ( llvm::StringRef  str)
static

◆ ParseCanonicalReference()

llvm::Optional< BreakpointID > BreakpointID::ParseCanonicalReference ( llvm::StringRef  input)
static

Takes an input string containing the description of a breakpoint or breakpoint and location and returns a BreakpointID filled out with the proper id and location.

Parameters
[in]inputA string containing JUST the breakpoint description.
Returns
If input was not a valid breakpoint ID string, returns llvm::None. Otherwise returns a BreakpointID with members filled out accordingly.

Definition at line 71 of file BreakpointID.cpp.

References BreakpointID(), LLDB_INVALID_BREAK_ID, and lldb_private::None.

Referenced by lldb_private::BreakpointIDList::AddBreakpointID(), lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), lldb_private::BreakpointIDList::FindBreakpointID(), lldb_private::BreakpointIDList::InsertStringArray(), IsValidIDExpression(), and SetBreakpointLocationID().

◆ SetBreakpointID()

void lldb_private::BreakpointID::SetBreakpointID ( lldb::break_id_t  bp_id)
inline

Definition at line 39 of file BreakpointID.h.

References m_break_id.

◆ SetBreakpointLocationID()

void lldb_private::BreakpointID::SetBreakpointLocationID ( lldb::break_id_t  loc_id)
inline

◆ SetID()

void lldb_private::BreakpointID::SetID ( lldb::break_id_t  bp_id,
lldb::break_id_t  loc_id 
)
inline

Definition at line 34 of file BreakpointID.h.

References m_break_id, and m_location_id.

◆ StringIsBreakpointName()

bool BreakpointID::StringIsBreakpointName ( llvm::StringRef  str,
Status error 
)
static

Takes an input string and checks to see whether it is a breakpoint name.

If it is a mal-formed breakpoint name, error will be set to an appropriate error string.

Parameters
[in]inputA string containing JUST the breakpoint description.
[out]errorIf the name is a well-formed breakpoint name, set to success, otherwise set to an error.
Returns
true if the name is a breakpoint name (as opposed to an ID or range) false otherwise.

Definition at line 95 of file BreakpointID.cpp.

References lldb_private::Status::Clear(), and lldb_private::Status::SetErrorStringWithFormat().

Referenced by lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), lldb_private::Target::FindBreakpointName(), lldb_private::BreakpointList::FindBreakpointsByName(), and SetBreakpointLocationID().

Member Data Documentation

◆ m_break_id

lldb::break_id_t lldb_private::BreakpointID::m_break_id
protected

Definition at line 92 of file BreakpointID.h.

Referenced by GetBreakpointID(), GetDescription(), SetBreakpointID(), and SetID().

◆ m_location_id

lldb::break_id_t lldb_private::BreakpointID::m_location_id
protected

Definition at line 93 of file BreakpointID.h.

Referenced by GetDescription(), GetLocationID(), SetBreakpointLocationID(), and SetID().


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