Add the native thread state to art SIGQUIT dumps.
Bug: 7053953
Change-Id: I9be3f828332e5bbb003644802d7770b58d8298ed
diff --git a/src/thread.cc b/src/thread.cc
index e3bbc4d..935b05c 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -671,12 +671,14 @@
scheduler_stats = "0 0 0";
}
+ char native_thread_state = '?';
int utime = 0;
int stime = 0;
int task_cpu = 0;
- GetTaskStats(tid, utime, stime, task_cpu);
+ GetTaskStats(tid, native_thread_state, utime, stime, task_cpu);
- os << " | schedstat=( " << scheduler_stats << " )"
+ os << " | state=" << native_thread_state
+ << " schedstat=( " << scheduler_stats << " )"
<< " utm=" << utime
<< " stm=" << stime
<< " core=" << task_cpu