summaryrefslogtreecommitdiff
path: root/lldb/include/lldb/API/SBWatchpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/API/SBWatchpoint.h')
-rw-r--r--lldb/include/lldb/API/SBWatchpoint.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/lldb/include/lldb/API/SBWatchpoint.h b/lldb/include/lldb/API/SBWatchpoint.h
index 0554be2349ae..de8e87f3a732 100644
--- a/lldb/include/lldb/API/SBWatchpoint.h
+++ b/lldb/include/lldb/API/SBWatchpoint.h
@@ -12,6 +12,12 @@
#include "lldb/API/SBDefines.h"
#include "lldb/API/SBType.h"
+namespace lldb_private {
+namespace ptyhon {
+class SWIGBridge;
+}
+} // namespace lldb_private
+
namespace lldb {
class LLDB_API SBWatchpoint {
@@ -20,10 +26,6 @@ public:
SBWatchpoint(const lldb::SBWatchpoint &rhs);
-#ifndef SWIG
- SBWatchpoint(const lldb::WatchpointSP &wp_sp);
-#endif
-
~SBWatchpoint();
const lldb::SBWatchpoint &operator=(const lldb::SBWatchpoint &rhs);
@@ -65,12 +67,6 @@ public:
void Clear();
-#ifndef SWIG
- lldb::WatchpointSP GetSP() const;
-
- void SetSP(const lldb::WatchpointSP &sp);
-#endif
-
static bool EventIsWatchpointEvent(const lldb::SBEvent &event);
static lldb::WatchpointEventType
@@ -88,6 +84,15 @@ public:
bool IsWatchingWrites();
+protected:
+ friend class lldb_private::python::SWIGBridge;
+
+ SBWatchpoint(const lldb::WatchpointSP &wp_sp);
+
+ lldb::WatchpointSP GetSP() const;
+
+ void SetSP(const lldb::WatchpointSP &sp);
+
private:
friend class SBTarget;
friend class SBValue;