[Lldb-commits] [lldb] r117287 - /lldb/trunk/test/lldbutil.py

Johnny Chen johnny.chen at apple.com
Mon Oct 25 12:13:53 PDT 2010


Author: johnny
Date: Mon Oct 25 14:13:52 2010
New Revision: 117287

URL: http://llvm.org/viewvc/llvm-project?rev=117287&view=rev
Log:
Only prints out the stop reason if it is not invalid.

Modified:
    lldb/trunk/test/lldbutil.py

Modified: lldb/trunk/test/lldbutil.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbutil.py?rev=117287&r1=117286&r2=117287&view=diff
==============================================================================
--- lldb/trunk/test/lldbutil.py (original)
+++ lldb/trunk/test/lldbutil.py Mon Oct 25 14:13:52 2010
@@ -173,9 +173,12 @@
     lines = GetLineNumbers(thread)
     addrs = GetPCAddresses(thread)
 
-    print >> output, "Stack trace for thread id={0:#x} name={1} queue={2} stop reason={3}:".format(
-        thread.GetThreadID(), thread.GetName(), thread.GetQueueName(),
-        StopReasonString(thread.GetStopReason()))
+    if thread.GetStopReason() != lldb.eStopReasonInvalid:
+        desc =  "stop reason=" + StopReasonString(thread.GetStopReason())
+    else:
+        desc = ""
+    print >> output, "Stack trace for thread id={0:#x} name={1} queue={2} ".format(
+        thread.GetThreadID(), thread.GetName(), thread.GetQueueName()) + desc
 
     for i in range(depth):
         frame = thread.GetFrameAtIndex(i)





More information about the lldb-commits mailing list