Adding eStopReasonThreadExiting and fixing the handling of this state on Linux.

llvm-svn: 170800
This commit is contained in:
Andrew Kaylor
2012-12-20 23:08:03 +00:00
parent 287e7d275c
commit f85defaea5
10 changed files with 31 additions and 14 deletions

View File

@@ -151,6 +151,7 @@ SBThread::GetStopReasonDataCount ()
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
case eStopReasonThreadExiting:
// There is no data for these stop reasons.
return 0;
@@ -209,6 +210,7 @@ SBThread::GetStopReasonDataAtIndex (uint32_t idx)
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
case eStopReasonThreadExiting:
// There is no data for these stop reasons.
return 0;
@@ -348,6 +350,13 @@ SBThread::GetStopDescription (char *dst, size_t dst_len)
}
break;
case eStopReasonThreadExiting:
{
char limbo_desc[] = "thread exiting";
stop_desc = limbo_desc;
stop_desc_len = sizeof(limbo_desc);
}
break;
default:
break;
}