From: Nick Roberts Date: Sat, 2 Sep 2006 09:42:51 +0000 (+0000) Subject: (handle_inferior_event): Take terminal. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6f81488500ee78aa58cb9674b1a0c864a8c8398;p=thirdparty%2Fbinutils-gdb.git (handle_inferior_event): Take terminal. --- diff --git a/gdb/infrun.c b/gdb/infrun.c index 8795100ddb1..511391388f5 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1693,6 +1693,13 @@ handle_inferior_event (struct execution_control_state *ecs) if (deprecated_context_hook) deprecated_context_hook (pid_to_thread_id (ecs->ptid)); + if (ui_out_is_mi_like_p (uiout)) + { + target_terminal_ours_for_output (); + printf_filtered ("[Switching to %s]\n", + target_pid_or_tid_to_str (inferior_ptid)); + } + flush_cached_frames (); }