aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-12 12:41:56 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-12 12:41:56 +0000
commitb1a268e5b41dbdedca7e84bdb442dbe42d6de00b (patch)
treedbb278f1a29de9121ed5ae01674620649304da6f /gdb/infrun.c
parent90139f7d5afb8d89822c8704dd3031b5d64ccbf5 (diff)
downloadgdb-b1a268e5b41dbdedca7e84bdb442dbe42d6de00b.zip
gdb-b1a268e5b41dbdedca7e84bdb442dbe42d6de00b.tar.gz
gdb-b1a268e5b41dbdedca7e84bdb442dbe42d6de00b.tar.bz2
* infrun.c (normal_stop): For MI, report which threads
were stopped.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c17
1 files changed, 15 insertions, 2 deletions
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