9#ifndef LLDB_BREAKPOINT_WATCHPOINT_H
10#define LLDB_BREAKPOINT_WATCHPOINT_H
24class Watchpoint :
public std::enable_shared_from_this<Watchpoint>,
36 llvm::StringRef
GetFlavor()
const override;
44 static lldb::WatchpointEventType
71 void SetEnabled(
bool enabled,
bool notify =
true);
151 bool is_synchronous =
false);
155 bool is_synchronous =
false);
Generic representation of a type in a programming language.
"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
static llvm::StringRef GetFlavorString()
const WatchpointEventData & operator=(const WatchpointEventData &)=delete
lldb::WatchpointSP m_new_watchpoint_sp
llvm::StringRef GetFlavor() const override
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)
WatchpointVariableBaton(std::unique_ptr< WatchpointVariableContext > Data)
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)
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
bool WatchedValueReportable(const ExecutionContext &exe_ctx)
Watchpoint(const Watchpoint &)=delete
void SendWatchpointChangedEvent(lldb::WatchpointEventType eventKind)
std::string GetWatchSpec()
lldb::ValueObjectSP m_new_value_sp
static bool VariableWatchpointDisabler(void *baton, lldb_private::StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
Callback routine to disable the watchpoint set on a local variable when it goes out of scope.
bool DumpSnapshots(Stream *s, const char *prefix=nullptr) const
bool IsDisabledDuringEphemeralMode()
lldb::ValueObjectSP m_old_value_sp
void ResetHistoricValues()
uint32_t m_disabled_count
bool ShouldStop(StoppointCallbackContext *context) override
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()
bool SetupVariableWatchpointDisabler(lldb::StackFrameSP frame_sp) const
bool WatchpointModify() const
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 TurnOnEphemeralMode()
A class that represents a running process on the host machine.
bool(* WatchpointHitCallback)(void *baton, StoppointCallbackContext *context, lldb::user_id_t watch_id)
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
std::shared_ptr< lldb_private::Baton > BatonSP
std::shared_ptr< lldb_private::Event > EventSP
std::shared_ptr< lldb_private::Watchpoint > WatchpointSP
Represents the context of a watchpoint variable.
ExecutionContext exe_ctx
The execution context associated with the watchpoint.
lldb::watch_id_t watch_id
The ID of the watchpoint.
WatchpointVariableContext(lldb::watch_id_t watch_id, ExecutionContext exe_ctx)
Constructor for WatchpointVariableContext.