[Lldb-commits] [lldb] r133947 - /lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py

Johnny Chen johnny.chen at apple.com
Mon Jun 27 14:52:46 PDT 2011


Author: johnny
Date: Mon Jun 27 16:52:46 2011
New Revision: 133947

URL: http://llvm.org/viewvc/llvm-project?rev=133947&view=rev
Log:
Add comments and print output for selected thread under trace mode.

Modified:
    lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py

Modified: lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py?rev=133947&r1=133946&r2=133947&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py (original)
+++ lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py Mon Jun 27 16:52:46 2011
@@ -64,7 +64,7 @@
         self.assertTrue(this_thread)
 
         # Find the other thread.  The iteration protocol of SBProcess and the
-        # rich comparison method (equality) comes in handy.
+        # rich comparison methods (__eq__/__ne__) of SBThread come in handy.
         other_thread = None
         for t in process:
             if t != this_thread:
@@ -74,6 +74,8 @@
         # Set the other thread as the selected thread to issue our 'po' command.other
         self.assertTrue(other_thread)
         process.SetSelectedThread(other_thread)
+        if self.TraceOn():
+            print "selected thread:" + lldbutil.get_description(other_thread)
         self.runCmd("thread backtrace")
 
         # We want to traverse the frame to the one corresponding to blocked.m to
@@ -86,7 +88,7 @@
             if name == 'main':
                 other_thread.SetSelectedFrame(i)
                 if self.TraceOn():
-                    print "selected frame:" + str(frame)
+                    print "selected frame:" + lldbutil.get_description(frame)
                 break
 
         self.expect("po lock_me", OBJECT_PRINTED_CORRECTLY,





More information about the lldb-commits mailing list