diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-02-14 15:24:44 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-02-14 15:24:44 +0000 |
commit | 1d33d6baa4963c315d33807eea8ab33742a90369 (patch) | |
tree | d4952c79cf2d6ae732371322331643bc82ba8512 /gdb/infrun.c | |
parent | faafb0471077b19764561b55cec06713cefd0c07 (diff) | |
download | gdb-1d33d6baa4963c315d33807eea8ab33742a90369.zip gdb-1d33d6baa4963c315d33807eea8ab33742a90369.tar.gz gdb-1d33d6baa4963c315d33807eea8ab33742a90369.tar.bz2 |
Include frame information for *stopped due to CLI commands.
* ada-tasks.c (ada_normal_stop_observer): Adjust prototype.
* infcmd.c (finish_command_continuation): Pass '1' for
'print_frame' parameter to the observer.
* infrun.c (normal_stop): Don't print mi-specific information
here. Pass 'stop_print_frame' to the 'print_frame' parameter
of the observer.
* mi/mi-interp.c (mi_on_normal_stop): Adjust prototype.
If we need to print frame, and current uiout is not the MI one,
print frame again.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index bed628d..2afc738 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4360,22 +4360,6 @@ Further execution is probably impossible.\n")); internal_error (__FILE__, __LINE__, _("Unknown value.")); } - if (ui_out_is_mi_like_p (uiout)) - { - - 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 @@ -4430,9 +4414,10 @@ done: && inferior_thread ()->step_multi)) { if (!ptid_equal (inferior_ptid, null_ptid)) - observer_notify_normal_stop (inferior_thread ()->stop_bpstat); + observer_notify_normal_stop (inferior_thread ()->stop_bpstat, + stop_print_frame); else - observer_notify_normal_stop (NULL); + observer_notify_normal_stop (NULL, stop_print_frame); } if (target_has_execution) |