9#ifndef LLDB_BREAKPOINT_WATCHPOINTRESOURCE_H
10#define LLDB_BREAKPOINT_WATCHPOINTRESOURCE_H
21 :
public std::enable_shared_from_this<WatchpointResource> {
39 void SetType(
bool read,
bool write);
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.
bool ShouldStop(StoppointCallbackContext *context)
Enquires of the atchpoints that produced this watchpoint resource whether we should stop at this loca...
size_t GetNumberOfConstituents()
This method returns the number of Watchpoints currently using watchpoint resource.
WatchpointCollection CopyConstituentsList()
This method copies the watchpoint resource's constituents into a new collection.
const WatchpointResource & operator=(const WatchpointResource &)=delete
lldb::addr_t GetLoadAddress() const
bool WatchpointResourceRead() const
void AddConstituent(const lldb::WatchpointSP &constituent)
The "Constituents" are the watchpoints that share this resource.
WatchpointCollection m_constituents
The Watchpoints which own this resource.
LockingAdaptedIterable< WatchpointCollection, lldb::WatchpointSP, vector_adapter, std::mutex > WatchpointIterable
bool ConstituentsContains(const lldb::WatchpointSP &wp_sp)
Check if the constituents includes a watchpoint.
lldb::WatchpointSP GetConstituentAtIndex(size_t idx)
This method returns the Watchpoint at index index using this Resource.
lldb::wp_resource_id_t GetID() const
static lldb::wp_resource_id_t GetNextID()
bool WatchpointResourceWrite() const
lldb::watch_id_t ConstituentID
size_t GetByteSize() const
void SetType(bool read, bool write)
void Dump(Stream *s) const
Standard Dump method.
std::mutex m_constituents_mutex
This mutex protects the constituents collection.
WatchpointResource(const WatchpointResource &)=delete
lldb::wp_resource_id_t SiteID
void RemoveConstituent(lldb::WatchpointSP &constituent)
The method removes the constituent at constituent from this watchpoint resource.
lldb::wp_resource_id_t m_id
std::vector< lldb::WatchpointSP > WatchpointCollection
WatchpointIterable Constituents()
Iterate over the watchpoint constituents for this resource.
A class that represents a running process on the host machine.
E vector_adapter(I &iter)
std::shared_ptr< lldb_private::Watchpoint > WatchpointSP
uint32_t wp_resource_id_t