From 16dcf718d31e9d2aff445baa13658c0810108310 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Mon, 17 Oct 2011 18:58:00 +0000 Subject: 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 --- lldb/scripts/Python/interface/SBWatchpoint.i | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/scripts/Python') 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); }; -- cgit v1.2.3