|
LLDB mainline
|
#include <StopPointSiteList.h>
Public Types | |
| using | StopPointSiteSP = std::shared_ptr<StopPointSite> |
| typedef void(* | StopPointSiteSPMapFunc) (StopPointSite &site, void *baton) |
Public Member Functions | |
| StopPointSite::SiteID | Add (const StopPointSiteSP &site_sp) |
| Add a site to the list. | |
| void | Dump (Stream *s) const |
| Standard Dump routine, doesn't do anything at present. | |
| StopPointSiteSP | FindByAddress (lldb::addr_t addr) |
| Returns a shared pointer to the site at address addr. | |
| StopPointSiteSP | FindByID (typename StopPointSite::SiteID site_id) |
| Returns a shared pointer to the site with id site_id. | |
| const StopPointSiteSP | FindByID (typename StopPointSite::SiteID site_id) const |
| Returns a shared pointer to the site with id site_id - const version. | |
| StopPointSite::SiteID | FindIDByAddress (lldb::addr_t addr) |
| Returns the site id to the site at address addr. | |
| bool | StopPointSiteContainsBreakpoint (typename StopPointSite::SiteID, lldb::break_id_t bp_id) |
| Returns whether the BreakpointSite site_id has a BreakpointLocation that is part of Breakpoint bp_id. | |
| void | ForEach (std::function< void(StopPointSite *)> const &callback) |
| bool | Remove (typename StopPointSite::SiteID site_id) |
| Removes the site given by site_id from this list. | |
| bool | RemoveByAddress (lldb::addr_t addr) |
| Removes the site at address addr from this list. | |
| bool | FindInRange (lldb::addr_t lower_bound, lldb::addr_t upper_bound, StopPointSiteList &bp_site_list) const |
| size_t | GetSize () const |
| Returns the number of elements in the list. | |
| bool | IsEmpty () const |
| std::vector< StopPointSiteSP > | Sites () |
| void | Clear () |
Protected Types | |
| typedef std::map< lldb::addr_t, StopPointSiteSP > | collection |
Protected Member Functions | |
| collection::iterator | GetIDIterator (typename StopPointSite::SiteID site_id) |
| collection::const_iterator | GetIDConstIterator (typename StopPointSite::SiteID site_id) const |
Protected Attributes | |
| std::recursive_mutex | m_mutex |
| collection | m_site_list |
Friends | |
| class | Process |
Definition at line 22 of file StopPointSiteList.h.
|
protected |
Definition at line 248 of file StopPointSiteList.h.
| using lldb_private::StopPointSiteList< StopPointSite >::StopPointSiteSP = std::shared_ptr<StopPointSite> |
Definition at line 29 of file StopPointSiteList.h.
| typedef void(* lldb_private::StopPointSiteList< StopPointSite >::StopPointSiteSPMapFunc) (StopPointSite &site, void *baton) |
Definition at line 214 of file StopPointSiteList.h.
|
inline |
Add a site to the list.
| [in] | site_sp | A shared pointer to a site being added to the list. |
Definition at line 38 of file StopPointSiteList.h.
References m_mutex, m_site_list, and UINT32_MAX.
Referenced by FindInRange().
|
inline |
Definition at line 242 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
|
inline |
Standard Dump routine, doesn't do anything at present.
| [in] | s | Stream into which to dump the description. |
Definition at line 50 of file StopPointSiteList.h.
References lldb_private::Stream::IndentLess(), lldb_private::Stream::IndentMore(), m_site_list, and lldb_private::Stream::Printf().
|
inline |
Returns a shared pointer to the site at address addr.
| [in] | addr | The address to look for. |
Definition at line 70 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
Referenced by FindIDByAddress(), and lldb_private::ProcessWindows::RefreshStateAfterStop().
|
inline |
Returns a shared pointer to the site with id site_id.
| [in] | site_id | The site ID to seek for. |
Definition at line 86 of file StopPointSiteList.h.
References GetIDIterator(), m_mutex, and m_site_list.
Referenced by CommandObjectProcessContinue::DoExecute().
|
inline |
Returns a shared pointer to the site with id site_id - const version.
| [in] | site_id | The site ID to seek for. |
Definition at line 104 of file StopPointSiteList.h.
References GetIDConstIterator(), m_mutex, and m_site_list.
|
inline |
Returns the site id to the site at address addr.
| [in] | addr | The address to match. |
Definition at line 121 of file StopPointSiteList.h.
References FindByAddress(), and UINT32_MAX.
|
inline |
Definition at line 185 of file StopPointSiteList.h.
References Add(), m_mutex, and m_site_list.
|
inline |
Definition at line 145 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
Referenced by lldb_private::process_gdb_remote::ProcessGDBRemote::DidForkSwitchHardwareTraps(), lldb_private::process_gdb_remote::ProcessGDBRemote::DidForkSwitchSoftwareBreakpoints(), lldb_private::Process::RemoveBreakpointOpcodesFromBuffer(), and lldb_private::Process::WriteMemory().
|
inlineprotected |
Definition at line 262 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
Referenced by FindByID().
|
inlineprotected |
Definition at line 251 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
Referenced by FindByID(), and Remove().
|
inline |
Returns the number of elements in the list.
Definition at line 220 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
|
inline |
Definition at line 225 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
Referenced by lldb_private::Process::WriteMemory().
|
inline |
Removes the site given by site_id from this list.
| [in] | site_id | The site ID to remove. |
Definition at line 158 of file StopPointSiteList.h.
References GetIDIterator(), m_mutex, and m_site_list.
|
inline |
Removes the site at address addr from this list.
| [in] | addr | The address from which to remove a site. |
Definition at line 175 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
|
inline |
Definition at line 230 of file StopPointSiteList.h.
References m_mutex, and m_site_list.
| bool lldb_private::StopPointSiteList< StopPointSite >::StopPointSiteContainsBreakpoint | ( | typename StopPointSite::SiteID | , |
| lldb::break_id_t | bp_id ) |
Returns whether the BreakpointSite site_id has a BreakpointLocation that is part of Breakpoint bp_id.
NB this is only defined when StopPointSiteList is specialized for BreakpointSite's.
| [in] | site_id | The site id to query. |
| [in] | bp_id | The breakpoint id to look for in site_id's BreakpointLocations. |
|
friend |
|
mutableprotected |
Definition at line 272 of file StopPointSiteList.h.
Referenced by Add(), Clear(), FindByAddress(), FindByID(), FindByID(), FindInRange(), ForEach(), GetIDConstIterator(), GetIDIterator(), GetSize(), IsEmpty(), Remove(), RemoveByAddress(), and Sites().
|
protected |
Definition at line 273 of file StopPointSiteList.h.
Referenced by Add(), Clear(), Dump(), FindByAddress(), FindByID(), FindByID(), FindInRange(), ForEach(), GetIDConstIterator(), GetIDIterator(), GetSize(), IsEmpty(), Remove(), RemoveByAddress(), and Sites().