aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 8a17147..bb821cc 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -823,6 +823,16 @@ print_thread_info (struct ui_out *uiout, int requested_thread)
LOCATION);
}
+ if (ui_out_is_mi_like_p (uiout))
+ {
+ char *state = "stopped";
+ if (tp->state_ == THREAD_EXITED)
+ state = "exited";
+ else if (tp->state_ == THREAD_RUNNING)
+ state = "running";
+ ui_out_field_string (uiout, "state", state);
+ }
+
do_cleanups (chain2);
}