Adding eStopReasonThreadExiting and fixing the handling of this state on Linux.
llvm-svn: 170800
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index c1e834b..3f3c904 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -151,6 +151,7 @@
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
+ case eStopReasonThreadExiting:
// There is no data for these stop reasons.
return 0;
@@ -209,6 +210,7 @@
case eStopReasonTrace:
case eStopReasonExec:
case eStopReasonPlanComplete:
+ case eStopReasonThreadExiting:
// There is no data for these stop reasons.
return 0;
@@ -348,6 +350,13 @@
}
break;
+ case eStopReasonThreadExiting:
+ {
+ char limbo_desc[] = "thread exiting";
+ stop_desc = limbo_desc;
+ stop_desc_len = sizeof(limbo_desc);
+ }
+ break;
default:
break;
}