9#ifndef LLDB_BREAKPOINT_WATCHPOINT_H
10#define LLDB_BREAKPOINT_WATCHPOINT_H
24class Watchpoint :
public std::enable_shared_from_this<Watchpoint>,
30 const lldb::WatchpointSP &new_watchpoint_sp);
44 static lldb::WatchpointEventType
47 static lldb::WatchpointSP
73 void SetEnabled(
bool enabled,
bool notify =
true);
116 void SetCallback(WatchpointHitCallback callback,
void *callback_baton,
117 bool is_synchronous =
false);
120 const lldb::BatonSP &callback_baton_sp,
121 bool is_synchronous =
false);
Generic representation of a type in a programming language.
A uniqued constant string class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
void Decrement(uint32_t difference=1)
lldb::break_id_t m_id
Stoppoint site ID.
StoppointHitCounter m_hit_counter
Number of times this breakpoint/watchpoint has been hit.
A stream class that can stream formatted output to a file.
This class is used by Watchpoint to manage a list of watchpoints,.
"lldb/Breakpoint/WatchpointOptions.h" Class that manages the options on a watchpoint.
static lldb::WatchpointSP GetWatchpointFromEvent(const lldb::EventSP &event_sp)
lldb::WatchpointEventType m_watchpoint_event
lldb::WatchpointSP & GetWatchpoint()
lldb::WatchpointEventType GetWatchpointEventType() const
ConstString GetFlavor() const override
static ConstString GetFlavorString()
const WatchpointEventData & operator=(const WatchpointEventData &)=delete
lldb::WatchpointSP m_new_watchpoint_sp
static lldb::WatchpointEventType GetWatchpointEventTypeFromEvent(const lldb::EventSP &event_sp)
void Dump(Stream *s) const override
WatchpointEventData(const WatchpointEventData &)=delete
static const WatchpointEventData * GetEventDataFromEvent(const Event *event_sp)
~WatchpointEventData() override
WatchpointEventData(lldb::WatchpointEventType sub_type, const lldb::WatchpointSP &new_watchpoint_sp)
bool IsWatchVariable() const
void SetCallback(WatchpointHitCallback callback, void *callback_baton, bool is_synchronous=false)
Set the callback action invoked when the watchpoint is hit.
bool CaptureWatchedValue(const ExecutionContext &exe_ctx)
void DumpSnapshots(Stream *s, const char *prefix=nullptr) const
uint32_t GetIgnoreCount() const
bool InvokeCallback(StoppointCallbackContext *context)
Invoke the callback action when the watchpoint is hit.
void SetIgnoreCount(uint32_t n)
std::unique_ptr< UserExpression > m_condition_up
void SetEnabled(bool enabled, bool notify=true)
bool IsHardware() const override
void Dump(Stream *s) const override
Watchpoint(const Watchpoint &)=delete
void SendWatchpointChangedEvent(lldb::WatchpointEventType eventKind)
std::string GetWatchSpec()
void SetCallback(WatchpointHitCallback callback, const lldb::BatonSP &callback_baton_sp, bool is_synchronous=false)
lldb::ValueObjectSP m_new_value_sp
uint32_t m_watch_was_written
bool IsDisabledDuringEphemeralMode()
lldb::ValueObjectSP m_old_value_sp
void ResetHistoricValues()
uint32_t m_disabled_count
bool ShouldStop(StoppointCallbackContext *context) override
uint32_t m_watch_was_read
void SetWatchSpec(const std::string &str)
void SetWatchVariable(bool val)
void SetID(lldb::watch_id_t id)
void TurnOffEphemeralMode()
const char * GetConditionText() const
Return a pointer to the text of the condition expression.
void GetDescription(Stream *s, lldb::DescriptionLevel level)
const Watchpoint & operator=(const Watchpoint &)=delete
WatchpointOptions m_options
bool WatchpointRead() const
std::string m_watch_spec_str
const CompilerType & GetCompilerType()
void SetCondition(const char *condition)
Set the watchpoint's condition.
WatchpointOptions * GetOptions()
Returns the WatchpointOptions structure set for this watchpoint.
void SetWatchpointType(uint32_t type, bool notify=true)
const Status & GetError()
void SetDeclInfo(const std::string &str)
bool WatchpointWrite() const
void DumpWithLevel(Stream *s, lldb::DescriptionLevel description_level) const
void IncrementFalseAlarmsAndReviseHitCount()
void TurnOnEphemeralMode()
A class that represents a running process on the host machine.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.