Only prints out the stop reason if it is not invalid.
llvm-svn: 117287
This commit is contained in:
parent
742052526a
commit
567a045fe3
|
|
@ -173,9 +173,12 @@ def PrintStackTrace(thread, string_buffer = False):
|
||||||
lines = GetLineNumbers(thread)
|
lines = GetLineNumbers(thread)
|
||||||
addrs = GetPCAddresses(thread)
|
addrs = GetPCAddresses(thread)
|
||||||
|
|
||||||
print >> output, "Stack trace for thread id={0:#x} name={1} queue={2} stop reason={3}:".format(
|
if thread.GetStopReason() != lldb.eStopReasonInvalid:
|
||||||
thread.GetThreadID(), thread.GetName(), thread.GetQueueName(),
|
desc = "stop reason=" + StopReasonString(thread.GetStopReason())
|
||||||
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):
|
for i in range(depth):
|
||||||
frame = thread.GetFrameAtIndex(i)
|
frame = thread.GetFrameAtIndex(i)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue