20 bool read,
bool write)
21 : m_id(GetNextID()), m_addr(addr), m_size(size),
22 m_watch_read(read), m_watch_write(write) {}
76 WatchpointCollection::const_iterator match =
101 m_hit_counter.Increment();
106 WatchpointResourceCollection constituents_copy;
111 return constituents_copy.ShouldStop(context);
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.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
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.
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.
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
size_t GetByteSize() const
void SetType(bool read, bool write)
bool Contains(lldb::addr_t addr)
void Dump(Stream *s) const
Standard Dump method.
std::mutex m_constituents_mutex
This mutex protects the constituents collection.
WatchpointResource(lldb::addr_t addr, size_t size, bool read, bool write)
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
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::Watchpoint > WatchpointSP
uint32_t wp_resource_id_t