Lines Matching defs:Watchpoint

1 //===-- Watchpoint.cpp ----------------------------------------------------===//
9 #include "lldb/Breakpoint/Watchpoint.h"
29 Watchpoint::Watchpoint(Target &target, lldb::addr_t addr, uint32_t size,
70 Watchpoint::~Watchpoint() = default;
73 void Watchpoint::SetCallback(WatchpointHitCallback callback, void *baton,
85 void Watchpoint::SetCallback(WatchpointHitCallback callback,
92 bool Watchpoint::SetupVariableWatchpointDisabler(StackFrameSP frame_sp) const {
133 bool Watchpoint::VariableWatchpointDisabler(void *baton,
180 void Watchpoint::ClearCallback() {
185 void Watchpoint::SetDeclInfo(const std::string &str) { m_decl_str = str; }
187 std::string Watchpoint::GetWatchSpec() { return m_watch_spec_str; }
189 void Watchpoint::SetWatchSpec(const std::string &str) {
193 bool Watchpoint::IsHardware() const {
198 bool Watchpoint::IsWatchVariable() const { return m_is_watch_variable; }
200 void Watchpoint::SetWatchVariable(bool val) { m_is_watch_variable = val; }
202 bool Watchpoint::CaptureWatchedValue(const ExecutionContext &exe_ctx) {
221 bool Watchpoint::WatchedValueReportable(const ExecutionContext &exe_ctx) {
259 bool Watchpoint::ShouldStop(StoppointCallbackContext *context) {
265 void Watchpoint::GetDescription(Stream *s, lldb::DescriptionLevel level) {
269 void Watchpoint::Dump(Stream *s) const {
275 bool Watchpoint::DumpSnapshots(Stream *s, const char *prefix) const {
283 s->Printf("Watchpoint %u hit:\n", GetID());
344 void Watchpoint::DumpWithLevel(Stream *s,
352 s->Printf("Watchpoint %u: addr = 0x%8.8" PRIx64
392 bool Watchpoint::IsEnabled() const { return m_enabled; }
399 void Watchpoint::TurnOnEphemeralMode() { m_is_ephemeral = true; }
401 void Watchpoint::TurnOffEphemeralMode() {
407 bool Watchpoint::IsDisabledDuringEphemeralMode() {
411 void Watchpoint::SetEnabled(bool enabled, bool notify) {
427 void Watchpoint::SetWatchpointType(uint32_t type, bool notify) {
440 bool Watchpoint::WatchpointRead() const { return m_watch_read != 0; }
442 bool Watchpoint::WatchpointWrite() const { return m_watch_write != 0; }
444 bool Watchpoint::WatchpointModify() const { return m_watch_modify != 0; }
446 uint32_t Watchpoint::GetIgnoreCount() const { return m_ignore_count; }
448 void Watchpoint::SetIgnoreCount(uint32_t n) {
455 bool Watchpoint::InvokeCallback(StoppointCallbackContext *context) {
459 void Watchpoint::SetCondition(const char *condition) {
477 const char *Watchpoint::GetConditionText() const {
484 void Watchpoint::SendWatchpointChangedEvent(
494 Watchpoint::WatchpointEventData::WatchpointEventData(
498 Watchpoint::WatchpointEventData::~WatchpointEventData() = default;
500 llvm::StringRef Watchpoint::WatchpointEventData::GetFlavorString() {
501 return "Watchpoint::WatchpointEventData";
504 llvm::StringRef Watchpoint::WatchpointEventData::GetFlavor() const {
508 WatchpointSP &Watchpoint::WatchpointEventData::GetWatchpoint() {
513 Watchpoint::WatchpointEventData::GetWatchpointEventType() const {
517 void Watchpoint::WatchpointEventData::Dump(Stream *s) const {}
519 const Watchpoint::WatchpointEventData *
520 Watchpoint::WatchpointEventData::GetEventDataFromEvent(const Event *event) {
531 Watchpoint::WatchpointEventData::GetWatchpointEventTypeFromEvent(
541 WatchpointSP Watchpoint::WatchpointEventData::GetWatchpointFromEvent(