1 //===-- SWIG Interface for SBWatchpoint -----------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 "Represents an instance of watchpoint for a specific target program.
14 A watchpoint is determined by the address and the byte size that resulted in
15 this particular instantiation. Each watchpoint has its settable options.
17 See also SBTarget.watchpoint_iter() for example usage of iterating through the
18 watchpoints of the target."
26 SBWatchpoint (const lldb::SBWatchpoint &rhs);
33 explicit operator bool() const;
35 bool operator==(const SBWatchpoint &rhs) const;
37 bool operator!=(const SBWatchpoint &rhs) const;
45 %feature("docstring", "
46 With -1 representing an invalid hardware index.") GetHardwareIndex;
57 SetEnabled(bool enabled);
69 SetIgnoreCount (uint32_t n);
71 %feature("docstring", "
72 Get the condition expression for the watchpoint.") GetCondition;
76 %feature("docstring", "
77 The watchpoint stops only if the condition expression evaluates to true.") SetCondition;
79 SetCondition (const char *condition);
82 GetDescription (lldb::SBStream &description, DescriptionLevel level);
85 EventIsWatchpointEvent (const lldb::SBEvent &event);
87 static lldb::WatchpointEventType
88 GetWatchpointEventTypeFromEvent (const lldb::SBEvent& event);
90 static lldb::SBWatchpoint
91 GetWatchpointFromEvent (const lldb::SBEvent& event);
93 STRING_EXTENSION_LEVEL(SBWatchpoint, lldb::eDescriptionLevelVerbose)