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
This commit is contained in:
Johnny Chen
2011-10-17 18:58:00 +00:00
parent a7e0b90897
commit 16dcf718d3
9 changed files with 445 additions and 13 deletions

View File

@@ -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);
};