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

Johnny Chen johnny.chen at apple.com
Wed Dec 22 12:36:30 PST 2010


Author: johnny
Date: Wed Dec 22 14:36:29 2010
New Revision: 122434

URL: http://llvm.org/viewvc/llvm-project?rev=122434&view=rev
Log:
Simplify the breakpoint command function.  Instead of fetching the command interpreter
and run the "process continue" command, use the SBProcess.Continue() API.

Modified:
    lldb/trunk/test/conditional_break/conditional_break.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=122434&r1=122433&r2=122434&view=diff
==============================================================================
--- lldb/trunk/test/conditional_break/conditional_break.py (original)
+++ lldb/trunk/test/conditional_break/conditional_break.py Wed Dec 22 14:36:29 2010
@@ -9,12 +9,6 @@
     # 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()
@@ -34,7 +28,7 @@
             pass
         else:
             #print >> sys.stdout, "Continuing..."
-            ci.HandleCommand("process continue", res)
+            process.Continue()
 
     return True
 





More information about the lldb-commits mailing list