LLDB mainline
|
#include <BreakpointID.h>
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 () |
bool | operator== (BreakpointID rhs) const |
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 std::optional< BreakpointID > | ParseCanonicalReference (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. | |
static bool | StringIsBreakpointName (llvm::StringRef str, Status &error) |
Takes an input string and checks to see whether it is a breakpoint name. | |
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. | |
Protected Attributes | |
lldb::break_id_t | m_break_id |
lldb::break_id_t | m_location_id |
Definition at line 22 of file BreakpointID.h.
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 20 of file BreakpointID.cpp.
|
virtualdefault |
|
inline |
Definition at line 33 of file BreakpointID.h.
References m_break_id.
Referenced by lldb::SBTarget::BreakpointsCreateFromFile(), CommandObjectBreakpointModify::DoExecute(), CommandObjectBreakpointEnable::DoExecute(), CommandObjectBreakpointList::DoExecute(), CommandObjectBreakpointDelete::DoExecute(), CommandObjectBreakpointNameAdd::DoExecute(), CommandObjectBreakpointNameDelete::DoExecute(), CommandObjectBreakpointRead::DoExecute(), CommandObjectBreakpointCommandDelete::DoExecute(), CommandObjectBreakpointCommandList::DoExecute(), CommandObjectProcessContinue::DoExecute(), lldb_private::Target::SerializeBreakpointsToFile(), and lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
|
static |
Takes a breakpoint ID and the breakpoint location id and returns a string containing the canonical description for the breakpoint or breakpoint location.
[out] | break_id | This is the break id. |
[out] | break_loc_id | This is breakpoint location id, or LLDB_INVALID_BREAK_ID is no location is to be specified. |
Definition at line 56 of file BreakpointID.cpp.
References LLDB_INVALID_BREAK_ID, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
Referenced by CommandObjectBreakpointCommandList::DoExecute(), lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), lldb_private::BreakpointLocation::GetDescription(), and lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
void BreakpointID::GetDescription | ( | Stream * | s, |
lldb::DescriptionLevel | level | ||
) |
Definition at line 44 of file BreakpointID.cpp.
References lldb::eDescriptionLevelVerbose, LLDB_INVALID_BREAK_ID, m_break_id, m_location_id, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
|
inline |
Definition at line 35 of file BreakpointID.h.
References m_location_id.
Referenced by CommandObjectBreakpointModify::DoExecute(), CommandObjectBreakpointEnable::DoExecute(), CommandObjectBreakpointDelete::DoExecute(), CommandObjectBreakpointCommandDelete::DoExecute(), CommandObjectBreakpointCommandList::DoExecute(), CommandObjectProcessContinue::DoExecute(), and lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
|
static |
Definition at line 40 of file BreakpointID.cpp.
References g_range_specifiers.
Referenced by lldb_private::BreakpointIDList::SplitIDRangeExpression().
|
static |
Definition at line 32 of file BreakpointID.cpp.
References g_range_specifiers.
Referenced by lldb_private::BreakpointIDList::FindAndReplaceIDRanges().
|
static |
Definition at line 36 of file BreakpointID.cpp.
References ParseCanonicalReference().
Referenced by lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), and lldb_private::BreakpointIDList::SplitIDRangeExpression().
|
inline |
Definition at line 29 of file BreakpointID.h.
References m_break_id, and m_location_id.
|
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.
[in] | input | A string containing JUST the breakpoint description. |
input
was not a valid breakpoint ID string, returns std::nullopt. Otherwise returns a BreakpointID with members filled out accordingly. Definition at line 67 of file BreakpointID.cpp.
References LLDB_INVALID_BREAK_ID.
Referenced by lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), IsValidIDExpression(), and lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
|
inline |
Definition at line 42 of file BreakpointID.h.
References m_break_id.
|
inline |
Definition at line 44 of file BreakpointID.h.
References m_location_id.
Referenced by CommandObjectProcessContinue::DoExecute().
|
inline |
Definition at line 37 of file BreakpointID.h.
References m_break_id, and m_location_id.
|
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.
[in] | str | A string containing JUST the breakpoint description. |
[out] | error | If the name is a well-formed breakpoint name, set to success, otherwise set to an error. |
Definition at line 91 of file BreakpointID.cpp.
References error().
Referenced by CommandObjectBreakpointNameConfigure::DoExecute(), lldb_private::BreakpointIDList::FindAndReplaceIDRanges(), lldb_private::Target::FindBreakpointName(), lldb_private::BreakpointList::FindBreakpointsByName(), CommandObjectBreakpointSet::CommandOptions::SetOptionValue(), BreakpointNameOptionGroup::SetOptionValue(), and CommandObjectBreakpointRead::CommandOptions::SetOptionValue().
|
protected |
Definition at line 95 of file BreakpointID.h.
Referenced by GetBreakpointID(), GetDescription(), operator==(), SetBreakpointID(), and SetID().
|
protected |
Definition at line 96 of file BreakpointID.h.
Referenced by GetDescription(), GetLocationID(), operator==(), SetBreakpointLocationID(), and SetID().