diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-06-04 23:19:54 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-06-04 23:19:54 +0000 |
commit | b90827e66c6576a229b9018ba8400a2e3e300d02 (patch) | |
tree | 982b29230add06d804c9c61b0299fd05fd992d3e /lldb/test/python_api/default-constructor | |
parent | 188d830405a47a6c1b5c87f85cd46bce587c2ec7 (diff) | |
download | bcm5719-llvm-b90827e66c6576a229b9018ba8400a2e3e300d02.tar.gz bcm5719-llvm-b90827e66c6576a229b9018ba8400a2e3e300d02.zip |
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
Diffstat (limited to 'lldb/test/python_api/default-constructor')
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_target.py | 3 | ||||
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_value.py | 5 | ||||
-rw-r--r-- | lldb/test/python_api/default-constructor/sb_watchpoint.py | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_target.py b/lldb/test/python_api/default-constructor/sb_target.py index 3e6c6f63056..823b49f6243 100644 --- a/lldb/test/python_api/default-constructor/sb_target.py +++ b/lldb/test/python_api/default-constructor/sb_target.py @@ -52,7 +52,8 @@ def fuzz_obj(obj): obj.GetAddressByteSize() obj.GetByteOrder() obj.GetTriple() - obj.WatchAddress(123, 8, True, True) + error = lldb.SBError() + obj.WatchAddress(123, 8, True, True, error) obj.GetBroadcaster() obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelBrief) obj.Clear() 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() diff --git a/lldb/test/python_api/default-constructor/sb_watchpoint.py b/lldb/test/python_api/default-constructor/sb_watchpoint.py index a028cb48c4c..f462e62ff16 100644 --- a/lldb/test/python_api/default-constructor/sb_watchpoint.py +++ b/lldb/test/python_api/default-constructor/sb_watchpoint.py @@ -8,7 +8,6 @@ import lldb def fuzz_obj(obj): obj.GetID() obj.IsValid() - obj.GetError() obj.GetHardwareIndex() obj.GetWatchAddress() obj.GetWatchSize() |