[Lldb-commits] [lldb] r115955 - /lldb/trunk/test/conditional_break/TestConditionalBreak.py

Johnny Chen johnny.chen at apple.com
Thu Oct 7 11:49:04 PDT 2010


Author: johnny
Date: Thu Oct  7 13:49:04 2010
New Revision: 115955

URL: http://llvm.org/viewvc/llvm-project?rev=115955&view=rev
Log:
Minor cleanup with added comment.

Modified:
    lldb/trunk/test/conditional_break/TestConditionalBreak.py

Modified: lldb/trunk/test/conditional_break/TestConditionalBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/conditional_break/TestConditionalBreak.py?rev=115955&r1=115954&r2=115955&view=diff
==============================================================================
--- lldb/trunk/test/conditional_break/TestConditionalBreak.py (original)
+++ lldb/trunk/test/conditional_break/TestConditionalBreak.py Thu Oct  7 13:49:04 2010
@@ -50,14 +50,15 @@
             substrs = ['state is Stopped', 'stop reason = breakpoint'])
 
         # Suppose we are only interested in the call scenario where c()'s
-        # immediate caller is a() and we want to find out the value passed
-        # from a().
-        for j in range(3):
+        # immediate caller is a() and we want to find out the value passed from
+        # a().
+        #
+        # The 10 in range(10) is just an arbitrary number, which means we would
+        # like to try for at most 10 times.
+        for j in range(10):
             target = self.dbg.GetSelectedTarget()
             process = target.GetProcess()
             thread = process.GetThreadAtIndex(0)
-            import lldbutil
-            #lldbutil.PrintStackTrace(thread)
             
             if thread.GetNumFrames() >= 2:
                 frame0 = thread.GetFrameAtIndex(0)





More information about the lldb-commits mailing list