summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2012-12-18 02:03:49 +0000
committerJim Ingham <jingham@apple.com>2012-12-18 02:03:49 +0000
commit1b5792e5ad1831aecd25ec50cc279e28e49e5c81 (patch)
treeda58d6cc035945e68cbf63cb89fe5ba5763b1999 /lldb/scripts/Python/interface
parent2a45e409a8ae86c7761d805ecb61b2052a4d570f (diff)
downloadbcm5719-llvm-1b5792e5ad1831aecd25ec50cc279e28e49e5c81.tar.gz
bcm5719-llvm-1b5792e5ad1831aecd25ec50cc279e28e49e5c81.zip
Adding events when watchpoints are set or changed.
<rdar://problem/11597849> llvm-svn: 170400
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i3
-rw-r--r--lldb/scripts/Python/interface/SBWatchpoint.i10
2 files changed, 12 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index 9685c94fcc1..8b23dda8256 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -238,7 +238,8 @@ public:
{
eBroadcastBitBreakpointChanged = (1 << 0),
eBroadcastBitModulesLoaded = (1 << 1),
- eBroadcastBitModulesUnloaded = (1 << 2)
+ eBroadcastBitModulesUnloaded = (1 << 2),
+ eBroadcastBitWatchpointChanged = (1 << 3)
};
//------------------------------------------------------------------
diff --git a/lldb/scripts/Python/interface/SBWatchpoint.i b/lldb/scripts/Python/interface/SBWatchpoint.i
index 23c27d8905e..9a40131f518 100644
--- a/lldb/scripts/Python/interface/SBWatchpoint.i
+++ b/lldb/scripts/Python/interface/SBWatchpoint.i
@@ -84,6 +84,16 @@ public:
bool
GetDescription (lldb::SBStream &description, DescriptionLevel level);
+
+ static bool
+ EventIsWatchpointEvent (const lldb::SBEvent &event);
+
+ static lldb::WatchpointEventType
+ GetWatchpointEventTypeFromEvent (const lldb::SBEvent& event);
+
+ static lldb::SBWatchpoint
+ GetWatchpointFromEvent (const lldb::SBEvent& event);
+
};
} // namespace lldb
OpenPOWER on IntegriCloud