LLDB mainline
|
#include <BreakpointIDList.h>
Public Types | |
typedef std::vector< BreakpointID > | BreakpointIDArray |
Public Member Functions | |
BreakpointIDList () | |
virtual | ~BreakpointIDList () |
size_t | GetSize () const |
const BreakpointID & | GetBreakpointIDAtIndex (size_t index) const |
bool | RemoveBreakpointIDAtIndex (size_t index) |
void | Clear () |
bool | AddBreakpointID (BreakpointID bp_id) |
bool | AddBreakpointID (const char *bp_id) |
bool | FindBreakpointID (BreakpointID &bp_id, size_t *position) const |
bool | FindBreakpointID (const char *bp_id, size_t *position) const |
void | InsertStringArray (llvm::ArrayRef< const char * > string_array, CommandReturnObject &result) |
Static Public Member Functions | |
static std::pair< llvm::StringRef, llvm::StringRef > | SplitIDRangeExpression (llvm::StringRef in_string) |
static void | FindAndReplaceIDRanges (Args &old_args, Target *target, bool allow_locations, BreakpointName::Permissions ::PermissionKinds purpose, CommandReturnObject &result, Args &new_args) |
Private Member Functions | |
BreakpointIDList (const BreakpointIDList &)=delete | |
const BreakpointIDList & | operator= (const BreakpointIDList &)=delete |
Private Attributes | |
BreakpointIDArray | m_breakpoint_ids |
BreakpointID | m_invalid_id |
Definition at line 25 of file BreakpointIDList.h.
typedef std::vector<BreakpointID> lldb_private::BreakpointIDList::BreakpointIDArray |
Definition at line 28 of file BreakpointIDList.h.
BreakpointIDList::BreakpointIDList | ( | ) |
Definition at line 23 of file BreakpointIDList.cpp.
|
virtualdefault |
|
privatedelete |
bool BreakpointIDList::AddBreakpointID | ( | BreakpointID | bp_id | ) |
Definition at line 46 of file BreakpointIDList.cpp.
References m_breakpoint_ids.
Referenced by SBBreakpointListImpl::CopyToBreakpointIDList(), lldb_private::Target::CreateBreakpointsFromFile(), CommandObjectBreakpointDelete::DoExecute(), CommandObjectProcessContinue::DoExecute(), and lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
bool BreakpointIDList::AddBreakpointID | ( | const char * | bp_id | ) |
Definition at line 53 of file BreakpointIDList.cpp.
References m_breakpoint_ids, and lldb_private::BreakpointID::ParseCanonicalReference().
void BreakpointIDList::Clear | ( | ) |
Definition at line 44 of file BreakpointIDList.cpp.
References m_breakpoint_ids.
|
static |
Definition at line 111 of file BreakpointIDList.cpp.
References lldb_private::Args::AppendArgument(), lldb_private::CommandReturnObject::AppendError(), lldb_private::CommandReturnObject::AppendErrorWithFormat(), lldb_private::BreakpointList::Breakpoints(), lldb_private::Args::Clear(), lldb::eReturnStatusSuccessFinishNoResult, error(), lldb_private::Target::FindBreakpointName(), lldb_private::BreakpointList::GetBreakpointAtIndex(), lldb_private::Target::GetBreakpointByID(), lldb_private::Target::GetBreakpointList(), lldb_private::BreakpointID::GetCanonicalReference(), lldb_private::BreakpointLocation::GetID(), lldb_private::Stoppoint::GetID(), lldb_private::Breakpoint::GetLocationAtIndex(), lldb_private::Breakpoint::GetNumLocations(), lldb_private::BreakpointName::GetPermission(), lldb_private::BreakpointList::GetSize(), lldb_private::StreamString::GetString(), lldb_private::BreakpointID::IsRangeIdentifier(), lldb_private::BreakpointID::IsValidIDExpression(), LLDB_INVALID_BREAK_ID, lldb_private::BreakpointID::ParseCanonicalReference(), lldb_private::CommandReturnObject::SetStatus(), lldb_private::Args::size(), SplitIDRangeExpression(), and lldb_private::BreakpointID::StringIsBreakpointName().
Referenced by lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
bool BreakpointIDList::FindBreakpointID | ( | BreakpointID & | bp_id, |
size_t * | position | ||
) | const |
Definition at line 62 of file BreakpointIDList.cpp.
References lldb_private::BreakpointID::GetBreakpointID(), lldb_private::BreakpointID::GetLocationID(), and m_breakpoint_ids.
Referenced by CommandObjectBreakpointDelete::DoExecute(), CommandObjectProcessContinue::DoExecute(), and FindBreakpointID().
bool BreakpointIDList::FindBreakpointID | ( | const char * | bp_id, |
size_t * | position | ||
) | const |
Definition at line 76 of file BreakpointIDList.cpp.
References FindBreakpointID(), and lldb_private::BreakpointID::ParseCanonicalReference().
const BreakpointID & BreakpointIDList::GetBreakpointIDAtIndex | ( | size_t | index | ) | const |
Definition at line 31 of file BreakpointIDList.cpp.
References m_breakpoint_ids, and m_invalid_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().
size_t BreakpointIDList::GetSize | ( | ) | const |
Definition at line 28 of file BreakpointIDList.cpp.
References m_breakpoint_ids.
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().
void BreakpointIDList::InsertStringArray | ( | llvm::ArrayRef< const char * > | string_array, |
CommandReturnObject & | result | ||
) |
Definition at line 85 of file BreakpointIDList.cpp.
References lldb::eReturnStatusSuccessFinishNoResult, m_breakpoint_ids, lldb_private::BreakpointID::ParseCanonicalReference(), and lldb_private::CommandReturnObject::SetStatus().
Referenced by lldb_private::CommandObjectMultiwordBreakpoint::VerifyIDs().
|
privatedelete |
bool BreakpointIDList::RemoveBreakpointIDAtIndex | ( | size_t | index | ) |
Definition at line 36 of file BreakpointIDList.cpp.
References m_breakpoint_ids.
|
static |
Definition at line 325 of file BreakpointIDList.cpp.
References lldb_private::BreakpointID::GetRangeSpecifiers(), and lldb_private::BreakpointID::IsValidIDExpression().
Referenced by FindAndReplaceIDRanges().
|
private |
Definition at line 68 of file BreakpointIDList.h.
Referenced by AddBreakpointID(), Clear(), FindBreakpointID(), GetBreakpointIDAtIndex(), GetSize(), InsertStringArray(), and RemoveBreakpointIDAtIndex().
|
private |
Definition at line 69 of file BreakpointIDList.h.
Referenced by GetBreakpointIDAtIndex().