Go to the documentation of this file.
9 #ifndef LLDB_BREAKPOINT_WATCHPOINTLIST_H
10 #define LLDB_BREAKPOINT_WATCHPOINTLIST_H
167 std::lock_guard<std::recursive_mutex> guard(
m_mutex);
191 void GetListMutex(std::unique_lock<std::recursive_mutex> &lock);
204 wp_collection::const_iterator
215 #endif // LLDB_BREAKPOINT_WATCHPOINTLIST_H
LockingAdaptedIterable< wp_collection, lldb::WatchpointSP, vector_adapter, std::recursive_mutex > WatchpointIterable
~WatchpointList()
Destructor, currently does nothing.
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
lldb::watch_id_t m_next_wp_id
WatchpointIterable Watchpoints() const
WatchpointList()
Default constructor makes an empty list.
wp_collection m_watchpoints
E vector_adapter(I &iter)
bool Remove(lldb::watch_id_t watchID, bool notify)
Removes the watchpoint given by watchID from this list.
lldb::WatchpointSP FindByID(lldb::watch_id_t watchID) const
Returns a shared pointer to the watchpoint with id watchID, const version.
std::list< lldb::WatchpointSP > wp_collection
lldb::watch_id_t FindIDBySpec(std::string spec)
Returns the watchpoint id to the watchpoint with watchpoint spec spec.
lldb::watch_id_t Add(const lldb::WatchpointSP &wp_sp, bool notify)
Add a Watchpoint to the list.
void DumpWithLevel(Stream *s, lldb::DescriptionLevel description_level) const
Dump with lldb::DescriptionLevel.
void RemoveAll(bool notify)
bool ShouldStop(StoppointCallbackContext *context, lldb::watch_id_t watchID)
Enquires of the watchpoint in this list with ID watchID whether we should stop.
size_t GetSize() const
Returns the number of elements in this watchpoint list.
wp_collection::iterator GetIDIterator(lldb::watch_id_t watchID)
std::vector< lldb::watch_id_t > id_vector
string(SUBSTRING ${p} 10 -1 pStripped) if($
void Dump(Stream *s) const
Standard "Dump" method.
wp_collection::const_iterator GetIDConstIterator(lldb::watch_id_t watchID) const
uint32_t GetHitCount() const
Returns the number hit count of all watchpoints in this list.
lldb::watch_id_t FindIDByAddress(lldb::addr_t addr)
Returns the watchpoint id to the watchpoint at address addr.
void GetDescription(Stream *s, lldb::DescriptionLevel level)
Print a description of the watchpoints in this list to the stream s.
id_vector GetWatchpointIDs() const
A class that represents a running process on the host machine.
void SetEnabledAll(bool enabled)
const lldb::WatchpointSP FindBySpec(std::string spec) const
Returns a shared pointer to the watchpoint with watchpoint spec spec.
std::recursive_mutex m_mutex
lldb::WatchpointSP GetByIndex(uint32_t i)
Returns a shared pointer to the watchpoint with index i.
void GetListMutex(std::unique_lock< std::recursive_mutex > &lock)
Sets the passed in Locker to hold the Watchpoint List mutex.
const lldb::WatchpointSP FindByAddress(lldb::addr_t addr) const
Returns a shared pointer to the watchpoint at address addr - const version.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.