From b90827e66c6576a229b9018ba8400a2e3e300d02 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Mon, 4 Jun 2012 23:19:54 +0000 Subject: rdar://problem/11584012 Refactorings of watchpoint creation APIs so that SBTarget::WatchAddress(), SBValue::Watch(), and SBValue::WatchPointee() now take an additional 'SBError &error' parameter (at the end) to contain the reason if there is some failure in the operation. Update 'watchpoint set variable/expression' commands to take advantage of that. Update existing test cases to reflect the API change and add test cases to verify that the SBError mechanism works for SBTarget::WatchAddress() by passing an invalid watch_size. llvm-svn: 157964 --- lldb/test/python_api/default-constructor/sb_value.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/test/python_api/default-constructor/sb_value.py') diff --git a/lldb/test/python_api/default-constructor/sb_value.py b/lldb/test/python_api/default-constructor/sb_value.py index a82a3e38f78..d103551635f 100644 --- a/lldb/test/python_api/default-constructor/sb_value.py +++ b/lldb/test/python_api/default-constructor/sb_value.py @@ -34,8 +34,9 @@ def fuzz_obj(obj): obj.GetDescription(stream) obj.GetExpressionPath(stream) obj.GetExpressionPath(stream, True) - obj.Watch(True, True, False) - obj.WatchPointee(True, False, True) + error = lldb.SBError() + obj.Watch(True, True, False, error) + obj.WatchPointee(True, False, True, error) for child_val in obj: print child_val error = lldb.SBError() -- cgit v1.2.3