summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-06-04 23:19:54 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-06-04 23:19:54 +0000
commitb90827e66c6576a229b9018ba8400a2e3e300d02 (patch)
tree982b29230add06d804c9c61b0299fd05fd992d3e /lldb/scripts/Python/interface
parent188d830405a47a6c1b5c87f85cd46bce587c2ec7 (diff)
downloadbcm5719-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/scripts/Python/interface')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i3
-rw-r--r--lldb/scripts/Python/interface/SBValue.i4
-rw-r--r--lldb/scripts/Python/interface/SBWatchpoint.i3
3 files changed, 4 insertions, 6 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index e8b6a00bdb8..052f4d6e86f 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -668,7 +668,8 @@ public:
WatchAddress (lldb::addr_t addr,
size_t size,
bool read,
- bool write);
+ bool write,
+ SBError &error);
lldb::SBBroadcaster
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);
diff --git a/lldb/scripts/Python/interface/SBWatchpoint.i b/lldb/scripts/Python/interface/SBWatchpoint.i
index 23c27d8905e..3649b2d21e0 100644
--- a/lldb/scripts/Python/interface/SBWatchpoint.i
+++ b/lldb/scripts/Python/interface/SBWatchpoint.i
@@ -31,9 +31,6 @@ public:
bool
IsValid();
- SBError
- GetError();
-
watch_id_t
GetID ();
OpenPOWER on IntegriCloud