28 FindByIDPair(bp_loc->GetBreakpoint().GetID(), bp_loc->GetID());
29 if (!old_bp_loc.get())
48 : m_break_id(break_id), m_break_loc_id(break_loc_id) {}
51 return m_break_id == bp_loc->GetBreakpoint().GetID() &&
52 m_break_loc_id == bp_loc->GetID();
60BreakpointLocationCollection::collection::iterator
69BreakpointLocationCollection::collection::const_iterator
92 collection::const_iterator pos =
121 bool shouldStop =
false;
124 while (i < prev_size) {
128 BreakpointSP keep_bkpt_alive_sp = cur_loc_sp->GetBreakpoint().shared_from_this();
129 if (cur_loc_sp->ShouldStop(context))
144 for (pos = begin; pos != end; ++pos) {
145 if ((*pos)->ValidForThisThread(thread))
156 bool is_internal =
true;
158 for (pos = begin; pos != end; ++pos) {
159 if (!(*pos)->GetBreakpoint().IsInternal()) {
173 for (pos = begin; pos != end; ++pos) {
176 (*pos)->GetDescription(s, level);
const lldb::break_id_t m_break_loc_id
const lldb::break_id_t m_break_id
BreakpointIDPairMatches(lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
bool operator()(const BreakpointLocationSP &bp_loc) const
~BreakpointLocationCollection()
collection m_break_loc_collection
std::mutex m_collection_mutex
lldb::BreakpointLocationSP FindByIDPair(lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
Returns a shared pointer to the breakpoint location with id breakID.
void GetDescription(Stream *s, lldb::DescriptionLevel level)
Print a description of the breakpoint locations in this list to the stream s.
BreakpointLocationCollection()
bool IsInternal() const
Tell whether ALL the breakpoints in the location collection are internal.
bool ValidForThisThread(Thread &thread)
Check whether this collection of breakpoint locations have any thread specifiers, and if yes,...
collection::const_iterator GetIDPairConstIterator(lldb::break_id_t break_id, lldb::break_id_t break_loc_id) const
BreakpointLocationCollection & operator=(const BreakpointLocationCollection &rhs)
collection::iterator GetIDPairIterator(lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
bool ShouldStop(StoppointCallbackContext *context)
Enquires of all the breakpoint locations in this list whether we should stop at a hit at breakID.
lldb::BreakpointLocationSP GetByIndex(size_t i)
Returns a shared pointer to the breakpoint location with index i.
void Add(const lldb::BreakpointLocationSP &bp_loc_sp)
Add the breakpoint bp_loc_sp to the list.
bool Remove(lldb::break_id_t break_id, lldb::break_id_t break_loc_id)
Removes the breakpoint location given by breakID from this list.
size_t GetSize() const
Returns the number of elements in this breakpoint location list.
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::BreakpointLocation > BreakpointLocationSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::Breakpoint > BreakpointSP