From b1a268e5b41dbdedca7e84bdb442dbe42d6de00b Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 12 Jul 2008 12:41:56 +0000 Subject: * infrun.c (normal_stop): For MI, report which threads were stopped. --- gdb/infrun.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index d99a40e..5473c99 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3879,8 +3879,21 @@ Further execution is probably impossible.\n")); } if (ui_out_is_mi_like_p (uiout)) - ui_out_field_int (uiout, "thread-id", - pid_to_thread_id (inferior_ptid)); + { + + ui_out_field_int (uiout, "thread-id", + pid_to_thread_id (inferior_ptid)); + if (non_stop) + { + struct cleanup *back_to = make_cleanup_ui_out_list_begin_end + (uiout, "stopped-threads"); + ui_out_field_int (uiout, NULL, + pid_to_thread_id (inferior_ptid)); + do_cleanups (back_to); + } + else + ui_out_field_string (uiout, "stopped-threads", "all"); + } /* The behavior of this routine with respect to the source flag is: SRC_LINE: Print only source line -- cgit v1.1