Add the native thread state to art SIGQUIT dumps.

Bug: 7053953
Change-Id: I9be3f828332e5bbb003644802d7770b58d8298ed
diff --git a/src/utils.cc b/src/utils.cc
index 4efb177..bff1f0c 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -913,7 +913,7 @@
 #endif
 }
 
-void GetTaskStats(pid_t tid, int& utime, int& stime, int& task_cpu) {
+void GetTaskStats(pid_t tid, char& state, int& utime, int& stime, int& task_cpu) {
   utime = stime = task_cpu = 0;
   std::string stats;
   if (!ReadFileToString(StringPrintf("/proc/self/task/%d/stat", tid), &stats)) {
@@ -924,6 +924,7 @@
   // Extract the three fields we care about.
   std::vector<std::string> fields;
   Split(stats, ' ', fields);
+  state = fields[0][0];
   utime = strtoull(fields[11].c_str(), NULL, 10);
   stime = strtoull(fields[12].c_str(), NULL, 10);
   task_cpu = strtoull(fields[36].c_str(), NULL, 10);