summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-27 20:29:45 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-27 20:29:45 +0000
commit9d954d86654d9627ef7813bce416b175e1467252 (patch)
tree2d928a9bc681290cbff6a9a3209c9f8e6f30cf21 /lldb/scripts/Python
parent4e6a4fa899a35ee0c86fa788f6a8b054e3cfae2b (diff)
downloadbcm5719-llvm-9d954d86654d9627ef7813bce416b175e1467252.tar.gz
bcm5719-llvm-9d954d86654d9627ef7813bce416b175e1467252.zip
Add SBTarget::GetLastCreatedWatchpointLocation() API and export to the Python interface.
Also add rich comparison methods (__eq__ and __ne__) for SBWatchpointLocation. Modify TestWatchpointLocationIter.py to exercise the new APIs. Add fuzz testings for the recently added SBTarget APIs related to watchpoint manipulations. llvm-svn: 140633
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r--lldb/scripts/Python/interface/SBTarget.i3
-rw-r--r--lldb/scripts/Python/modify-python-lldb.py11
2 files changed, 9 insertions, 5 deletions
diff --git a/lldb/scripts/Python/interface/SBTarget.i b/lldb/scripts/Python/interface/SBTarget.i
index 3bf14b1010a..6feb2167b16 100644
--- a/lldb/scripts/Python/interface/SBTarget.i
+++ b/lldb/scripts/Python/interface/SBTarget.i
@@ -439,6 +439,9 @@ public:
GetNumWatchpointLocations () const;
lldb::SBWatchpointLocation
+ GetLastCreatedWatchpointLocation ();
+
+ lldb::SBWatchpointLocation
GetWatchpointLocationAtIndex (uint32_t idx) const;
bool
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py
index 462467734cd..ac523be956d 100644
--- a/lldb/scripts/Python/modify-python-lldb.py
+++ b/lldb/scripts/Python/modify-python-lldb.py
@@ -199,11 +199,12 @@ d = { 'SBBreakpoint': ('GetNumLocations', 'GetLocationAtIndex'),
#
# This dictionary defines a mapping from classname to equality method name(s).
#
-e = { 'SBAddress': ['GetFileAddress', 'GetModule'],
- 'SBBreakpoint': ['GetID'],
- 'SBFileSpec': ['GetFilename', 'GetDirectory'],
- 'SBModule': ['GetFileSpec', 'GetUUIDString'],
- 'SBType': ['GetByteSize', 'GetName']
+e = { 'SBAddress': ['GetFileAddress', 'GetModule'],
+ 'SBBreakpoint': ['GetID'],
+ 'SBWatchpointLocation': ['GetID'],
+ 'SBFileSpec': ['GetFilename', 'GetDirectory'],
+ 'SBModule': ['GetFileSpec', 'GetUUIDString'],
+ 'SBType': ['GetByteSize', 'GetName']
}
def list_to_frag(list):
OpenPOWER on IntegriCloud