void BreakpointLocationCollection::Add(const BreakpointLocationSP &bp_loc) { std::lock_guard<std::mutex> guard(m_collection_mutex); BreakpointLocationSP old_bp_loc = FindByIDPair(bp_loc->GetBreakpoint().GetID(), bp_loc->GetID()); if (!old_bp_loc.get()) m_break_loc_collection.push_back(bp_loc); }
void BreakpointLocationCollection::Add(const BreakpointLocationSP &bp_loc) { BreakpointLocationSP old_bp_loc = FindByIDPair (bp_loc->GetBreakpoint().GetID(), bp_loc->GetID()); if (!old_bp_loc.get()) m_break_loc_collection.push_back(bp_loc); }
void BreakpointLocationList::SwapLocation( BreakpointLocationSP to_location_sp, BreakpointLocationSP from_location_sp) { if (!from_location_sp || !to_location_sp) return; m_address_to_location.erase(to_location_sp->GetAddress()); to_location_sp->SwapLocation(from_location_sp); RemoveLocation(from_location_sp); m_address_to_location[to_location_sp->GetAddress()] = to_location_sp; to_location_sp->ResolveBreakpointSite(); }
lldb::break_id_t BreakpointLocationList::Add (BreakpointLocationSP &bp_loc_sp) { if (bp_loc_sp) { Mutex::Locker locker (m_mutex); m_locations.push_back (bp_loc_sp); m_address_to_location[bp_loc_sp->GetAddress()] = bp_loc_sp; return bp_loc_sp->GetID(); } return LLDB_INVALID_BREAK_ID; }
bool BreakpointLocationList::ShouldStop(StoppointCallbackContext *context, lldb::break_id_t break_id) { BreakpointLocationSP bp = FindByID(break_id); if (bp) { // Let the BreakpointLocation decide if it should stop here (could not have // reached it's target hit count yet, or it could have a callback that // decided it shouldn't stop (shared library loads/unloads). return bp->ShouldStop(context); } // We should stop here since this BreakpointLocation isn't valid anymore or // it doesn't exist. return true; }
bool operator() (const BreakpointLocationSP &bp_loc) const { return m_break_id == bp_loc->GetBreakpoint().GetID() && m_break_loc_id == bp_loc->GetID(); }
static bool Compare(BreakpointLocationSP lhs, lldb::break_id_t val) { return lhs->GetID() < val; }
bool operator() (const BreakpointLocationSP &bp_loc_sp) const { return m_break_id == bp_loc_sp->GetID(); }
bool operator() (const BreakpointLocationSP& bp_loc_sp) const { return Address::CompareFileAddress(m_addr, bp_loc_sp->GetAddress()) == 0; }