9#ifndef LLDB_BREAKPOINT_BREAKPOINTSITELIST_H
10#define LLDB_BREAKPOINT_BREAKPOINTSITELIST_H
151 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
156 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
161 typedef std::map<lldb::addr_t, lldb::BreakpointSiteSP>
collection;
"lldb/Breakpoint/BreakpointSiteList.h" Class that manages lists of BreakpointSite shared pointers.
void Dump(Stream *s) const
Standard Dump routine, doesn't do anything at present.
void(* BreakpointSiteSPMapFunc)(lldb::BreakpointSiteSP &bp, void *baton)
BreakpointSiteList()
Default constructor makes an empty list.
bool FindInRange(lldb::addr_t lower_bound, lldb::addr_t upper_bound, BreakpointSiteList &bp_site_list) const
std::map< lldb::addr_t, lldb::BreakpointSiteSP > collection
collection::iterator GetIDIterator(lldb::break_id_t breakID)
bool BreakpointSiteContainsBreakpoint(lldb::break_id_t bp_site_id, lldb::break_id_t bp_id)
Returns whether the breakpoint site bp_site_id has bp_id.
collection m_bp_site_list
~BreakpointSiteList()
Destructor, currently does nothing.
lldb::BreakpointSiteSP FindByAddress(lldb::addr_t addr)
Returns a shared pointer to the breakpoint site at address addr.
lldb::BreakpointSiteSP FindByID(lldb::break_id_t breakID)
Returns a shared pointer to the breakpoint site with id breakID.
collection::const_iterator GetIDConstIterator(lldb::break_id_t breakID) const
lldb::break_id_t FindIDByAddress(lldb::addr_t addr)
Returns the breakpoint site id to the breakpoint site at address addr.
bool ShouldStop(StoppointCallbackContext *context, lldb::break_id_t breakID)
Enquires of the breakpoint site on in this list with ID breakID whether we should stop for the breakp...
void ForEach(std::function< void(BreakpointSite *)> const &callback)
std::recursive_mutex m_mutex
bool Remove(lldb::break_id_t breakID)
Removes the breakpoint site given by breakID from this list.
size_t GetSize() const
Returns the number of elements in the list.
bool RemoveByAddress(lldb::addr_t addr)
Removes the breakpoint site at address addr from this list.
lldb::break_id_t Add(const lldb::BreakpointSiteSP &bp_site_sp)
Add a BreakpointSite to the list.
Class that manages the actual breakpoint that will be inserted into the running program.
A plug-in interface definition class for debugging a process.
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.