Also prints out the stop reason string for lldbutil.PrintStackTrace(thread).

llvm-svn: 117281
This commit is contained in:
Johnny Chen 2010-10-25 18:43:29 +00:00
parent 752913d6ba
commit 4badfb8a1f
1 changed files with 3 additions and 2 deletions

View File

@ -173,8 +173,9 @@ 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}:".format(
thread.GetThreadID(), thread.GetName(), thread.GetQueueName())
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()))
for i in range(depth):
frame = thread.GetFrameAtIndex(i)