Go to the documentation of this file.
9 #ifndef LLDB_BREAKPOINT_WATCHPOINT_H
10 #define LLDB_BREAKPOINT_WATCHPOINT_H
24 class 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);
212 #endif // LLDB_BREAKPOINT_WATCHPOINT_H
WatchpointOptions m_options
lldb::break_id_t m_id
Stoppoint site ID.
uint32_t m_watch_was_read
static ConstString GetFlavorString()
void SetID(lldb::watch_id_t id)
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
void TurnOffEphemeralMode()
bool IsWatchVariable() const
const char * GetConditionText() const
Return a pointer to the text of the condition expression.
bool IsHardware() const override
static lldb::WatchpointSP GetWatchpointFromEvent(const lldb::EventSP &event_sp)
const CompilerType & GetCompilerType()
void IncrementFalseAlarmsAndReviseHitCount()
void SetWatchpointType(uint32_t type, bool notify=true)
void SetWatchSpec(const std::string &str)
bool InvokeCallback(StoppointCallbackContext *context)
Invoke the callback action when the watchpoint is hit.
lldb::ValueObjectSP m_old_value_sp
ConstString GetFlavor() const override
bool ShouldStop(StoppointCallbackContext *context) override
void SetDeclInfo(const std::string &str)
~WatchpointEventData() override
void SetEnabled(bool enabled, bool notify=true)
void DumpWithLevel(Stream *s, lldb::DescriptionLevel description_level) const
uint32_t m_disabled_count
std::unique_ptr< UserExpression > m_condition_up
std::string GetWatchSpec()
void DumpSnapshots(Stream *s, const char *prefix=nullptr) const
bool IsDisabledDuringEphemeralMode()
uint32_t m_watch_was_written
const Watchpoint & operator=(const Watchpoint &)=delete
void SetIgnoreCount(uint32_t n)
void SendWatchpointChangedEvent(lldb::WatchpointEventType eventKind)
bool WatchpointRead() const
const WatchpointEventData & operator=(const WatchpointEventData &)=delete
string(SUBSTRING ${p} 10 -1 pStripped) if($
lldb::ValueObjectSP m_new_value_sp
void ResetHistoricValues()
void TurnOnEphemeralMode()
std::string m_watch_spec_str
bool CaptureWatchedValue(const ExecutionContext &exe_ctx)
void SetCondition(const char *condition)
Set the watchpoint's condition.
const Status & GetError()
Watchpoint(Target &target, lldb::addr_t addr, uint32_t size, const CompilerType *type, bool hardware=true)
lldb::WatchpointSP & GetWatchpoint()
static lldb::WatchpointEventType GetWatchpointEventTypeFromEvent(const lldb::EventSP &event_sp)
static const WatchpointEventData * GetEventDataFromEvent(const Event *event_sp)
void GetDescription(Stream *s, lldb::DescriptionLevel level)
lldb::WatchpointSP m_new_watchpoint_sp
void Dump(Stream *s) const override
void SetWatchVariable(bool val)
Generic representation of a type in a programming language.
lldb::WatchpointEventType m_watchpoint_event
WatchpointOptions * GetOptions()
Returns the WatchpointOptions structure set for this watchpoint.
A class that represents a running process on the host machine.
lldb::WatchpointEventType GetWatchpointEventType() const
uint32_t GetIgnoreCount() const
WatchpointEventData(lldb::WatchpointEventType sub_type, const lldb::WatchpointSP &new_watchpoint_sp)
void SetCallback(WatchpointHitCallback callback, void *callback_baton, bool is_synchronous=false)
Set the callback action invoked when the watchpoint is hit.
bool WatchpointWrite() const
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
void Dump(Stream *s) const override