[Lldb-commits] [lldb] r114081 - in /lldb/trunk/test: conditional_break/conditional_break.py dotest.py

Johnny Chen johnny.chen at apple.com
Thu Sep 16 08:44:23 PDT 2010


Author: johnny
Date: Thu Sep 16 10:44:23 2010
New Revision: 114081

URL: http://llvm.org/viewvc/llvm-project?rev=114081&view=rev
Log:
Added some comments.

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

Modified: lldb/trunk/test/conditional_break/conditional_break.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/conditional_break/conditional_break.py?rev=114081&r1=114080&r2=114081&view=diff
==============================================================================
--- lldb/trunk/test/conditional_break/conditional_break.py (original)
+++ lldb/trunk/test/conditional_break/conditional_break.py Thu Sep 16 10:44:23 2010
@@ -3,15 +3,27 @@
 import lldbutil
 
 def stop_if_called_from_a():
+    # lldb.debugger_unique_id stores the id of the debugger associated with us.
     dbg = lldb.SBDebugger.FindDebuggerWithID(lldb.debugger_unique_id)
+
+    # Perform synchronous interaction with the debugger.
     dbg.SetAsync(False)
+
+    # Get the command interpreter.
     ci = dbg.GetCommandInterpreter()
+
+    # And the result object for ci interaction.
     res = lldb.SBCommandReturnObject()
 
+    # Retrieve the target, process, and the only thread.
     target = dbg.GetSelectedTarget()
     process = target.GetProcess()
     thread = process.GetThreadAtIndex(0)
 
+    # We check the call frames in order to stop only when the immediate caller
+    # of the leaf function c() is a().  If it's not the right caller, we ask the
+    # command interpreter to continue execution.
+
     print >> sys.stderr, "Checking call frames..."
     lldbutil.PrintStackTrace(thread)
     if thread.GetNumFrames() >= 2:

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=114081&r1=114080&r2=114081&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu Sep 16 10:44:23 2010
@@ -12,6 +12,12 @@
 To specify the directories where "Test*.py" python test scripts are located,
 you need to pass in a list of directory names.  By default, the current
 working directory is searched if nothing is specified on the command line.
+
+Type:
+
+./dotest.py -h
+
+for available options.
 """
 
 import os, signal, sys, time





More information about the lldb-commits mailing list