diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-06-09 22:04:56 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-06-09 22:04:56 +0000 |
commit | e2b5cfd826d486c22148d770406b24d81c7480ad (patch) | |
tree | 282760efcf50ad9a15695faf166c77f3d34ab8b2 /lldb/scripts/Python/modify-python-lldb.py | |
parent | c90a32a4e6a6d221d8bcd61dbc4bd7124d760c5b (diff) | |
download | bcm5719-llvm-e2b5cfd826d486c22148d770406b24d81c7480ad.tar.gz bcm5719-llvm-e2b5cfd826d486c22148d770406b24d81c7480ad.zip |
Add rich comparison methods for the SBAddress object.
If two SBAddress's have the same module and file address, they are considered equal.
Add a test snippet 'sa1 == sa2' to exercise the rich comparison methods for SBAddress.
llvm-svn: 132807
Diffstat (limited to 'lldb/scripts/Python/modify-python-lldb.py')
-rw-r--r-- | lldb/scripts/Python/modify-python-lldb.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/scripts/Python/modify-python-lldb.py b/lldb/scripts/Python/modify-python-lldb.py index 4f198c881d1..efd4fb6f5e7 100644 --- a/lldb/scripts/Python/modify-python-lldb.py +++ b/lldb/scripts/Python/modify-python-lldb.py @@ -88,7 +88,8 @@ d = { 'SBBreakpoint': ('GetNumLocations', 'GetLocationAtIndex'), # # This dictionary defines a mapping from classname to equality method name(s). # -e = { 'SBBreakpoint': ['GetID'], +e = { 'SBAddress': ['GetFileAddress', 'GetModule'], + 'SBBreakpoint': ['GetID'], 'SBFileSpec': ['GetFilename', 'GetDirectory'], 'SBModule': ['GetFileSpec', 'GetUUIDString'] } |