Fix thread status in THST chunk to use JDWP thread state.
Bug: 10492287
Change-Id: I830a2ce71d02c5b09c7040583be98d818eef9385
diff --git a/runtime/debugger.h b/runtime/debugger.h
index 2282305..d0fe445 100644
--- a/runtime/debugger.h
+++ b/runtime/debugger.h
@@ -29,6 +29,7 @@
#include "jni.h"
#include "jvalue.h"
#include "root_visitor.h"
+#include "thread_state.h"
namespace art {
namespace mirror {
@@ -268,6 +269,7 @@
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
static JDWP::ObjectId GetMainThreadGroupId();
+ static JDWP::JdwpThreadStatus ToJdwpThreadStatus(ThreadState state);
static JDWP::JdwpError GetThreadStatus(JDWP::ObjectId thread_id, JDWP::JdwpThreadStatus* pThreadStatus, JDWP::JdwpSuspendStatus* pSuspendStatus);
static JDWP::JdwpError GetThreadDebugSuspendCount(JDWP::ObjectId thread_id, JDWP::ExpandBuf* pReply);
// static void WaitForSuspend(JDWP::ObjectId thread_id);