summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-10-25 19:13:52 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-10-25 19:13:52 +0000
commit567a045fe3d320f03ca42a8a5ea90c0e7834c9bb (patch)
tree4afd2d9fac737f9565ba96fa827935ae78ef74af
parent742052526a5c525031f506ff597e872c745ab73f (diff)
downloadbcm5719-llvm-567a045fe3d320f03ca42a8a5ea90c0e7834c9bb.tar.gz
bcm5719-llvm-567a045fe3d320f03ca42a8a5ea90c0e7834c9bb.zip
Only prints out the stop reason if it is not invalid.
llvm-svn: 117287
-rw-r--r--lldb/test/lldbutil.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/test/lldbutil.py b/lldb/test/lldbutil.py
index 35a502247c7..2d20927d49a 100644
--- a/lldb/test/lldbutil.py
+++ b/lldb/test/lldbutil.py
@@ -173,9 +173,12 @@ def PrintStackTrace(thread, string_buffer = False):
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)
OpenPOWER on IntegriCloud