[Lldb-commits] [lldb] r140638 - in /lldb/trunk/test: lldbutil.py python_api/watchpoint/TestWatchpointLocationIter.py
Johnny Chen
johnny.chen at apple.com
Tue Sep 27 14:27:19 PDT 2011
Author: johnny
Date: Tue Sep 27 16:27:19 2011
New Revision: 140638
URL: http://llvm.org/viewvc/llvm-project?rev=140638&view=rev
Log:
SBWatchpointLocation.GetDescription() takes an additional description level arg.
Modify get_description() utility function in lldbutil.py to handle that.
Modified:
lldb/trunk/test/lldbutil.py
lldb/trunk/test/python_api/watchpoint/TestWatchpointLocationIter.py
Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=140638&r1=140637&r2=140638&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Tue Sep 27 16:27:19 2011
@@ -115,7 +115,8 @@
method = getattr(obj, 'GetDescription')
if not method:
return None
- if isinstance(obj, lldb.SBTarget) or isinstance(obj, lldb.SBBreakpointLocation):
+ tuple = (lldb.SBTarget, lldb.SBBreakpointLocation, lldb.SBWatchpointLocation)
+ if isinstance(obj, tuple):
if option is None:
option = lldb.eDescriptionLevelBrief
Modified: lldb/trunk/test/python_api/watchpoint/TestWatchpointLocationIter.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/watchpoint/TestWatchpointLocationIter.py?rev=140638&r1=140637&r2=140638&view=diff
==============================================================================
--- lldb/trunk/test/python_api/watchpoint/TestWatchpointLocationIter.py (original)
+++ lldb/trunk/test/python_api/watchpoint/TestWatchpointLocationIter.py Tue Sep 27 16:27:19 2011
@@ -92,6 +92,9 @@
print wp_loc
self.assertTrue(wp_loc.GetHardwareIndex() != -1)
+ # SBWatchpointLocation.GetDescription() takes a description level arg.
+ print lldbutil.get_description(wp_loc, lldb.eDescriptionLevelFull)
+
# Now disable the 'rw' watchpoint. The program won't stop when it reads
# 'global' next.
wp_loc.SetEnabled(False)
More information about the lldb-commits
mailing list