diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-10-01 01:19:45 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-10-01 01:19:45 +0000 |
commit | b49b7b53b1b1f1350b6da0835505985c44af68d7 (patch) | |
tree | 9cde8b77252e7921e4adebfd638363a10fe49153 /lldb/scripts/Python/interface/SBFrame.i | |
parent | 6276a757318e83e6e30112e678e54329ca6503df (diff) | |
download | bcm5719-llvm-b49b7b53b1b1f1350b6da0835505985c44af68d7.tar.gz bcm5719-llvm-b49b7b53b1b1f1350b6da0835505985c44af68d7.zip |
Add SBFrame.WatchLocation() to find and watch the location pointed to by
a variable usng the frame as the scope.
Add TestSetWatchpoint.py to exercise this API. Also fix some SWIG Python
docstrings.
llvm-svn: 140914
Diffstat (limited to 'lldb/scripts/Python/interface/SBFrame.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBFrame.i | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBFrame.i b/lldb/scripts/Python/interface/SBFrame.i index 19bccc7a032..40d65725405 100644 --- a/lldb/scripts/Python/interface/SBFrame.i +++ b/lldb/scripts/Python/interface/SBFrame.i @@ -220,10 +220,20 @@ public: /// It returns an SBValue, similar to FindValue() method, if find-and-watch /// operation succeeds. Otherwise, an invalid SBValue is returned. /// You can use LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE for 'rw' watch. - ") FindValue; + ") WatchValue; lldb::SBValue WatchValue (const char *name, ValueType value_type, uint32_t watch_type); + %feature("docstring", " + /// Find and watch the location pointed to by a variable using the frame as + /// the scope. + /// It returns an SBValue, similar to FindValue() method, if find-and-watch + /// operation succeeds. Otherwise, an invalid SBValue is returned. + /// You can use LLDB_WATCH_TYPE_READ | LLDB_WATCH_TYPE_WRITE for 'rw' watch. + ") WatchLocation; + lldb::SBValue + WatchLocation (const char *name, ValueType value_type, uint32_t watch_type, size_t size); + bool GetDescription (lldb::SBStream &description); |