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/scripts/Python/interface/SBValue.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/scripts/Python/interface/SBValue.i') diff --git a/lldb/scripts/Python/interface/SBValue.i b/lldb/scripts/Python/interface/SBValue.i index 9b9fd529de8..4b9d5d727b4 100644 --- a/lldb/scripts/Python/interface/SBValue.i +++ b/lldb/scripts/Python/interface/SBValue.i @@ -313,14 +313,14 @@ public: /// It returns an SBWatchpoint, which may be invalid. ") Watch; lldb::SBWatchpoint - Watch (bool resolve_location, bool read, bool write); + Watch (bool resolve_location, bool read, bool write, SBError &error); %feature("docstring", " /// Find and watch the location pointed to by a variable. /// It returns an SBWatchpoint, which may be invalid. ") WatchPointee; lldb::SBWatchpoint - WatchPointee (bool resolve_location, bool read, bool write); + WatchPointee (bool resolve_location, bool read, bool write, SBError &error); bool GetDescription (lldb::SBStream &description); -- cgit v1.2.3