summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-17 18:58:00 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-17 18:58:00 +0000
commit16dcf718d31e9d2aff445baa13658c0810108310 (patch)
tree73305ec234f6b5fa7cbef74eac17b2d0ff518d30 /lldb/scripts/Python/interface
parenta7e0b908975041359f82a333b69db61e731608ce (diff)
downloadbcm5719-llvm-16dcf718d31e9d2aff445baa13658c0810108310.tar.gz
bcm5719-llvm-16dcf718d31e9d2aff445baa13658c0810108310.zip
Add a commnad to set a condition for a watchpoint. Example:
watchpoint modify -c 'global==5' modifies the last created watchpoint so that the condition expression is evaluated at the stop point to decide whether we should proceed with the stopping. Also add SBWatchpont::SetCondition(const char *condition) to set condition programmatically. Test cases to come later. llvm-svn: 142227
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBWatchpoint.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBWatchpoint.i b/lldb/scripts/Python/interface/SBWatchpoint.i
index 03e7edb3167..75259310271 100644
--- a/lldb/scripts/Python/interface/SBWatchpoint.i
+++ b/lldb/scripts/Python/interface/SBWatchpoint.i
@@ -66,6 +66,12 @@ public:
void
SetIgnoreCount (uint32_t n);
+ const char *
+ GetCondition ();
+
+ void
+ SetCondition (const char *condition);
+
bool
GetDescription (lldb::SBStream &description, DescriptionLevel level);
};
OpenPOWER on IntegriCloud